adjust gdi renderer for accurateTimers
This commit is contained in:
parent
67ac35cfc4
commit
45c2206946
3 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ DWORD WINAPI render_soft_main(void)
|
|||
{
|
||||
float len = 1000.0f / maxFPS;
|
||||
ddraw->fpsLimiter.tickLengthNs = len * 10000;
|
||||
ddraw->fpsLimiter.ticklength = len;// + 0.5f;
|
||||
ddraw->fpsLimiter.ticklength = len + (ddraw->accurateTimers ? 0.5f : 0.0f);
|
||||
}
|
||||
|
||||
while (ddraw->render.run && WaitForSingleObject(ddraw->render.sem, INFINITE) != WAIT_FAILED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue