panel: F3 starts its window over only after it was hidden, not after every report #4695
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4695"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-12-01T02:07:17Z.
Fixes #4539
What it changes
The F3 panel shows a higher frame rate than the game really runs at, about 7 % too high at 30 fps. It is a calculation error: after each update the panel counts the first frame again, so it divides 16 frames by the time of 15. This fixes it: the window only starts over when the panel was hidden.
How it was tested
The small difference left comes from comparing a 0.5 s window with the engine's 5 s averages, not from the panel.
cargo testpassed for the crates it touches: yes; the new testframes_are_counted_over_as_many_intervalsfails without the fix.Checked for overlap
panel.rs).🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by WarisGG on 2026-12-01T03:27:19Z.
Tested #4695 in-game against
mainfor #4539 on an RTX 5070 12 GB (driver 621.24, HAGS on), Core Ultra 7 265KF, 64 GB RAM, Windows 11 build 26300. Both were local release builds, using the Series S profile with DLSS Quality, frame generation off, and ray tracing off.main(de21ed5710f5)337c5ba24493)F3 read higher in all three samples on
main. On the PR it read lower twice and slightly higher once. The engine log on the completed PR retry reported 29.4–34.9 FPS across its final eight samples. Those log samples were not synchronized to the individual F3 readings, and the two displays average over different intervals, so this is evidence that the consistent upward bias did not recur, not a measurement of the exact error or a performance comparison.F3 displayed FPS again after hiding and reopening it on the PR. The focused unit test
frames_are_counted_over_as_many_intervalsalso passed locally.Separately, the first PR run exited with
0xC0000005at a cutscene transition. The log did not establish a cause, and the F3 measurements above came from the retry. Frame generation was not tested.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by M4gnif1cus on 2026-12-01T13:03:53Z.
Thanks @WarisGG for testing. To confirm it, I measured the average of what the panel showed against the engine's own frame rate over the same 2 minutes, two runs each: on main the panel read 7.5 % too high; with this PR it matches (−0.5 %, which comes from comparing a 0.5 s window with 5 s averages). Single readings can still differ from a counter that averages over another interval.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.