mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 19:38:10 +00:00
[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:
@@ -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