-
Notifications
You must be signed in to change notification settings - Fork 6
fps_counter
Anthony Samms edited this page Jun 2, 2026
·
1 revision
FPSCounter measures and displays the current frame rate. It averages the last 60 frame times to smooth the reading and color-codes the display based on performance.
FPSCounter();Initialises the rolling average buffer to 60 fps (16.67 ms per frame).
void update();Records the current frame's delta time into the rolling buffer.
float get_fps();Returns the average FPS over the last 60 frames.
void draw();Draws the FPS value in the top-left corner scaled by global_tex.screen_scale. The text color is red below 30 fps, yellow below 60 fps, and green at 60 fps or above.
Building
libs
- animation
- audio
- config
- filesystem
- global_data
- input
- logging
- ray
- scores
- screen
- script
- song_parser
- text
- texture
- video
- webcam
libs/parsers
objects
objects/game
- player
- background
- gauge
- judgment
- combo
- branch_indicator
- ending_animations
- gogo_time
- fireworks
- song_info
- transition
- result_transition
- judge_counter
- score_counter
- score_counter_animation
- balloon_counter
- drumroll_counter
- kusudama_counter
- drum_hit_effect
- lane_hit_effect
- gauge_hit_effect
- combo_announce
- note_arc
objects/global
objects/title
objects/entry
objects/settings
objects/result
objects/song_select
- player
- navigator
- box_base
- box_song
- box_folder
- neiro
- modifier
- ura_switch
- diff_sort
- search_box
- dan_transition
- genre_bg
- score_history
- song_select_script
scenes