[client] overlay: add 25Hz tick function

This allows an overlay to manage itself for timed events like
alerts/messages, etc.
This commit is contained in:
Geoffrey McRae
2022-01-08 14:06:35 +11:00
parent 35334333ac
commit db2e38ae4d
4 changed files with 51 additions and 9 deletions

View File

@@ -519,6 +519,10 @@ void app_invalidateWindow(bool full)
{
if (full)
atomic_store(&g_state.invalidateWindow, true);
if (g_state.jitRender && g_state.ds->stopWaitFrame)
g_state.ds->stopWaitFrame();
lgSignalEvent(g_state.frameEvent);
}
@@ -691,15 +695,6 @@ void app_unregisterGraph(GraphHandle handle)
overlayGraph_unregister(handle);
}
struct Overlay
{
const struct LG_OverlayOps * ops;
const void * params;
void * udata;
int lastRectCount;
struct Rect lastRects[MAX_OVERLAY_RECTS];
};
void app_registerOverlay(const struct LG_OverlayOps * ops, const void * params)
{
ASSERT_LG_OVERLAY_VALID(ops);