[client] main: make use of new needs_render call

This commit is contained in:
Geoffrey McRae 2021-08-01 18:44:35 +10:00
parent f8e1ab8f31
commit 9d95154b85

View File

@ -171,7 +171,8 @@ static int renderThread(void * unused)
if (g_state.jitRender)
{
g_state.ds->waitFrame();
if (!lgResetEvent(g_state.frameEvent) && !g_state.overlayInput)
if (!lgResetEvent(g_state.frameEvent) && !g_state.overlayInput &&
!g_state.lgr->needs_render(g_state.lgrData))
continue;
}
else if (g_params.fpsMin != 0)