[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:
1 parent
b9a7ce17fe
commit
aed370c7ce
3 files changed
+40
-17
No files matched your search
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user