Allow delay ticks
This commit is contained in:
parent
f20d7a43b1
commit
3f42fac8f5
|
@ -418,10 +418,6 @@ struct FPSLimiter
|
||||||
private:
|
private:
|
||||||
void delayTicks(uint64_t ticks)
|
void delayTicks(uint64_t ticks)
|
||||||
{
|
{
|
||||||
#ifdef __EMSCRIPTEN__
|
|
||||||
return;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(HAVE_NANOSLEEP)
|
#if defined(HAVE_NANOSLEEP)
|
||||||
struct timespec req;
|
struct timespec req;
|
||||||
uint64_t nsec = ticks / tickFreqNS;
|
uint64_t nsec = ticks / tickFreqNS;
|
||||||
|
|
Loading…
Reference in New Issue