[client] main: use skipFrame and signal frameEvent

We need to signal frameEvent to render the first frame. Otherwise, wayland
fails to configure the window, as configuration happens in EGL swap.
This commit is contained in:
Quantum 2021-08-01 04:07:25 -04:00 committed by Geoffrey McRae
parent 2e4614cbc4
commit 986f92d0db

View File

@ -173,8 +173,12 @@ static int renderThread(void * unused)
g_state.ds->waitFrame();
if (!lgResetEvent(g_state.frameEvent) && !g_state.overlayInput &&
!g_state.lgr->needs_render(g_state.lgrData))
{
if (g_state.ds->skipFrame)
g_state.ds->skipFrame();
continue;
}
}
else if (g_params.fpsMin != 0)
{
float ups = atomic_load_explicit(&g_state.ups, memory_order_relaxed);