mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
Revert "[client] improve fps target accuracy"
This reverts commit 4d7e1054bd
.
This causes FPS runaway after a time
This commit is contained in:
parent
4d7e1054bd
commit
b927f991d6
@ -224,7 +224,7 @@ int renderThread(void * unused)
|
|||||||
{
|
{
|
||||||
usleep(state.fpsSleep - total);
|
usleep(state.fpsSleep - total);
|
||||||
int64_t delta = (1000000 / params.fpsLimit) - (microtime() - start);
|
int64_t delta = (1000000 / params.fpsLimit) - (microtime() - start);
|
||||||
state.fpsSleep += delta;
|
state.fpsSleep += delta / 16;
|
||||||
if (state.fpsSleep < 0)
|
if (state.fpsSleep < 0)
|
||||||
state.fpsSleep = 0;
|
state.fpsSleep = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user