[client] main: implement just-in-time render mode

When requested, JIT render mode will be used if the display server supports it.
Otherwise, a warning is generated instead.

This essentially uses the signalNextFrame logic for imgui, but for everything.
We automatically enable this mode when overlay is on.

Currently, this exposes some damage tracking bugs in the EGL renderer.
This commit is contained in:
Quantum
2021-07-31 20:07:05 -04:00
committed by Geoffrey McRae
parent b9a7ce17fe
commit aed370c7ce
3 changed files with 40 additions and 17 deletions

View File

@@ -55,8 +55,6 @@ struct AppState
ImFont * fontLarge;
bool overlayInput;
ImGuiMouseCursor cursorLast;
LGEvent * overlayRenderEvent;
bool overlayMustWait;
char * imGuiIni;
bool alertShow;
@@ -66,6 +64,8 @@ struct AppState
struct LG_DisplayServerOps * ds;
bool dsInitialized;
bool jitRender;
LGEvent * jitEvent;
bool stopVideo;
bool ignoreInput;
@@ -171,6 +171,7 @@ struct AppParams
uint64_t helpMenuDelayUs;
const char * uiFont;
int uiSize;
bool jitRender;
unsigned int cursorPollInterval;
unsigned int framePollInterval;