![]() |
Conquer Chess
Chess and Starcraft combined
|
Sleeps enough to reach 50-60 frames per second. More...
#include <sleep_scheduler.h>
Public Member Functions | |
| double | get_fps () const noexcept |
| Get the number of frames per second. | |
| void | set_target_fps (double fps) |
| Sets the target frame rate. | |
| void | tick () |
| Indicate a frame has passed. | |
Sleeps enough to reach 50-60 frames per second.
|
inlinenoexcept |
Get the number of frames per second.
| void sleep_scheduler::set_target_fps | ( | double | fps | ) |
Sets the target frame rate.
| void sleep_scheduler::tick | ( | ) |
Indicate a frame has passed.
This class will sleep here and will tune itself to sleep as much to achieve 50 frames per second