mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-19 22:08:09 +00:00
[client] imgui: support registering new graphs
Currently, our struct ll doesn't support removing elements from the middle, so we will not be removing anything for now.
This commit is contained in:
@@ -720,10 +720,15 @@ static int lg_run(void)
|
||||
ImFontAtlas_GetTexDataAsRGBA32(g_state.io->Fonts, &text_pixels,
|
||||
&text_w, &text_h, NULL);
|
||||
|
||||
g_state.graphs = ll_new();
|
||||
|
||||
// initialize metrics ringbuffers
|
||||
g_state.renderTimings = ringbuffer_new(256, sizeof(float));
|
||||
g_state.frameTimings = ringbuffer_new(256, sizeof(float));
|
||||
|
||||
app_registerGraph("RENDER", g_state.renderTimings);
|
||||
app_registerGraph("UPLOAD", g_state.frameTimings);
|
||||
|
||||
// search for the best displayserver ops to use
|
||||
for(int i = 0; i < LG_DISPLAYSERVER_COUNT; ++i)
|
||||
if (LG_DisplayServers[i]->probe())
|
||||
|
Reference in New Issue
Block a user