mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-04 07:08:14 +00:00
[client] imgui: make graph y-axis configurable
The default of [0, 50] makes sense for FPS/UPS graphs, but does not for things like the import graph. The latter should not take more than 5 ms for sure. This commit allows the min/max y-axis value to be specified when registering the graph.
This commit is contained in:
@@ -793,8 +793,8 @@ static int lg_run(void)
|
||||
// initialize metrics ringbuffers
|
||||
g_state.renderTimings = ringbuffer_new(256, sizeof(float));
|
||||
g_state.frameTimings = ringbuffer_new(256, sizeof(float));
|
||||
overlayGraph_register("RENDER", g_state.renderTimings);
|
||||
overlayGraph_register("UPLOAD", g_state.frameTimings );
|
||||
overlayGraph_register("RENDER", g_state.renderTimings, 0.0f, 50.0f);
|
||||
overlayGraph_register("UPLOAD", g_state.frameTimings , 0.0f, 50.0f);
|
||||
|
||||
// search for the best displayserver ops to use
|
||||
for(int i = 0; i < LG_DISPLAYSERVER_COUNT; ++i)
|
||||
|
||||
Reference in New Issue
Block a user