From 9d95154b853849f41b67d2e3fd92b8420f3d9989 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 1 Aug 2021 18:44:35 +1000 Subject: [PATCH] [client] main: make use of new `needs_render` call --- client/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main.c b/client/src/main.c index c72f71d4..a3aaedc8 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -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)