Video mirror: frametime + FPS graphs with min/max/avg stats

The mirror renders into the host window, so the host's render frame timing is
the mirror's performance. FrameStats now retains a ~2 s ring of frame-time
samples; the Video mirror panel plots them as a frametime graph (0-33 ms
scale) and an FPS graph (0-144 scale), each with an avg overlay, and prints
avg/min/max for both frametime and FPS underneath.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 15:19:00 +02:00
parent e07a89c869
commit a1b7578165
4 changed files with 107 additions and 4 deletions

View File

@@ -117,7 +117,7 @@ int run()
}
if (ui.show_video)
{
capture.draw_ui();
capture.draw_ui(stats);
}
}
else