panel: a re-shown panel starts its window over #2565
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!2565
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2565"
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?
@sh3nw4ld on GitHub · 2026-11-29 14:25 UTC · original
sh3nw4ld:fix-panel-stale-window→main· +170 −63 · 32 files · 9 commits · merged 2026-11-30 14:12 UTCWhat this fixes
The refresh window of the F3 panel reset only after a hidden gap of over a second (
frames == 0 && now - last > 2 * EVERY). Re-shown sooner, it kept the hidden time insinceandlast: the first line printed the gap as a frame time (LONGESTabout a second a frame at a ~0.8 s hide) and spread every counter over it.framesis zero only after a hide (or at birth), so it alone decides now: whatever the gap, the next shown frame starts the window over. The old> 2 * EVERYterm was a duplicate of what the gap check was for — nothing else setsframesto zero.Tests
a_re_shown_panel_starts_its_window_over: a run, a hide with the window frozen 800 ms in the past (EVERYis 500 ms, so the old condition does not fire), a re-show —worstis 0, not ~800. It fails on main (left 800-ish, right 0) and passes with the change.cargo test -p victory-gpu --lib --locked panel: 9 passed, 0 failed.Environment
Windows 11, RTX 4060 Ti, Rust 1.98.1 (pinned).
16f192ecc7toc6e6d176fcc6e6d176fctoe1b22bb2eee1b22bb2eeto88542677e288542677e2to0e938a806b0e938a806btoabbc21bc81abbc21bc81tocd4091d86cgithub-bot referenced this pull request2026-12-01 02:08:58 +00:00