Wait between two frames when gui is open

This commit is contained in:
Flyinghead 2019-03-08 20:02:53 +01:00
parent f1cea640e2
commit c2916e6f21
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ bool rend_single_frame()
if (gui_state == VJoyEdit && renderer != NULL)
renderer->DrawOSD(true);
FinishRender(NULL);
// Use the rendering start event to wait between two frames but save its value
if (rs.Wait(17))
rs.Set();
return true;
}
else