nngn
|
Simulates a v-sync pause using sleep
.
More...
Public Member Functions | |
int | interval () const |
void | set_interval (int i) |
void | limit () |
sleep s for as long as necessary to maintain a constant frame rate. More... | |
Private Attributes | |
int | m_interval = 1 |
nngn::Timing::time_point | last = {} |
Simulates a v-sync pause using sleep
.
|
inline |
void anonymous_namespace{terminal.cpp}::FrameLimiter::limit | ( | ) |
sleep
s for as long as necessary to maintain a constant frame rate.
|
inline |
|
private |
|
private |