Forcibly wait for the display thread to draw each frame (never skip any frame) ONLY IF the user set frame skip to "0 (never skip)".

Current implementation causes significant display lag if any magnification filter is used while GPU scaling factor is >1.
This commit is contained in:
retr0s4ge 2018-06-29 14:23:01 +02:00
parent 7548294333
commit 411bcaa15d
1 changed files with 1 additions and 1 deletions

View File

@ -2292,7 +2292,7 @@ static void StepRunLoop_User()
Hud.fps3d = GPU->GetFPSRender3D();
// wait for the HUD to update from last frame
WaitForSingleObject(display_done_event, display_done_timeout);
if(frameskiprate==0) WaitForSingleObject(display_done_event, display_done_timeout);
Display();
mainLoopData.fps3d = Hud.fps3d;