mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 14:57:04 +00:00
[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:
parent
2e4614cbc4
commit
986f92d0db
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user