[client] render: bind invalidation to queue batches

This commit is contained in:
Geoffrey McRae
2026-08-12 04:18:12 +10:00
parent 9c0caca3fa
commit 81be5a388a
3 changed files with 20 additions and 15 deletions

View File

@@ -985,7 +985,7 @@ static int renderThread(void * unused)
LG_LOCK(g_state.lgrLock);
renderQueue_process();
const bool queueFull = renderQueue_process();
if (g_state.videoGeometryDirty)
{
@@ -1009,7 +1009,7 @@ static int renderThread(void * unused)
const bool windowInvalid =
atomic_exchange(&g_state.invalidateWindow, false);
const bool overlayFull = app_overlayNeedsFullRender();
const bool invalidate = windowInvalid || overlayFull;
const bool invalidate = queueFull || windowInvalid || overlayFull;
const uint64_t prepareTime = nanotime() - prepareStart;
if (unlikely(invalidate))