X Tutup
Skip to content

Improve PerfInfo debug window#5899

Merged
sturnclaw merged 5 commits intopioneerspacesim:masterfrom
sturnclaw:debug-tools-tabs
Aug 23, 2024
Merged

Improve PerfInfo debug window#5899
sturnclaw merged 5 commits intopioneerspacesim:masterfrom
sturnclaw:debug-tools-tabs

Conversation

@sturnclaw
Copy link
Member

I've converted the PerfInfo debug tabs to use icons rather than names, made the debug tabs themselves hot-reloadable, and improved the amount of data shown in the performance plots displayed in the performance section. Frame graphs now display the last 5 seconds of frame timings (up from 1s), and have both a recent "instantaneous average" and whole-graph average. Memory graphs (which have a sample rate of 1Hz instead of ~60Hz) now show the last five minutes of memory usage for a more complete picture.

The PerfInfo window is easier to read and use at smaller window sizes, and can be collapsed completely to only display the current FPS while flying around the world as a built-in FPS counter.

I've also made the counters slightly cheaper to update in most cases, which should entirely offset any performance loss from increasing the number of samples per counter by 5x.

image

- Use font icons for tab names
- Move most performance counters into a tab
- Add process and lua memory graphs
- Add current FPS to window title and color-coded performance stats to header
- All lua-side debug tabs can be hot-reloaded when active with Ctrl+R
- Move responsibility for submitting tab item into debug module
- All tabs now use icon + tooltip instead of explicit name
- Counters calculate history average piece-wise rather than iterating the whole array
- Display min/max/recent average statistics
- Extend history to 300 samples (5s for frametime counters, 5m for memory counters)
@sturnclaw
Copy link
Member Author

This work was mostly done late last year - I had originally intended to add some additional functionality in the meantime and shelved the branch. Time did it's usual thing in the interim and I've completely forgotten what I intended to add further, so it's getting PR'd now.

@sturnclaw sturnclaw merged commit 1b86198 into pioneerspacesim:master Aug 23, 2024
@sturnclaw sturnclaw deleted the debug-tools-tabs branch August 23, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup