panel: a re-shown panel starts its window over #2565
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by sh3nw4ld on 2026-11-29T14:25:40Z.
What 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).