panel: F3 starts its window over only after it was hidden, not after every report #4696
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4696
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@M4gnif1cus on GitHub · 2026-12-01 02:07 UTC · original
M4gnif1cus:fix-f3-panel-fps→main· +38 −2 · 1 files · 1 commits · openFixes #4540
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
@WarisGG on GitHub · 2026-12-01 03:27 UTC · original
Tested #4696 in-game against
mainfor #4540 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.337c5ba244to3511dce557@M4gnif1cus on GitHub · 2026-12-01 13:03 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.