Add frametime coefficient of variation metric - #2098
Open
OursCodeur wants to merge 1 commit into
Open
Conversation
OursCodeur
force-pushed
the
fps-metrics-cv
branch
from
August 8, 2026 19:23
aab9db0 to
9790f03
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2023.
Hello ! This adds
cvtofps_metrics. It reports the population standard deviation divided by mean frametime for the current sample window, as a percentage. Lower values indicate steadier frametimes.The metric is shown with two decimal places and a percent suffix in both the regular HUD and the post-logging benchmark overlay. The percent suffix remains visible when
hide_fps_superscriptis enabled, since otherwise the value could be mistaken for FPS.The calculation uses a double-precision two-pass implementation, configurations containing only
cvskip the percentile copy and sort (the first presentation is excluded because it has no previous presentation timestamp).README and sample configuration document the new token. Perf-wise at the 10,000-sample cap, CV arithmetic adds roughly 12–14 µs; a CV-only calculation takes approximately 24.6 µs end to end on an i7-13700KF.
I left the benchmark CSV schema unchanged. If CV should be exported there as well, how would you prefer the column to be represented and ordered?
Cheers