panel: a re-shown panel starts its window over #2565

Manually merged
github merged 9 commits from github-bot/gh-2565 into main 2026-11-30 14:17:09 +00:00 AGit
Owner

@⁠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 UTC

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 in since and last: the first line printed the gap as a frame time (LONGEST about a second a frame at a ~0.8 s hide) and spread every counter over it.

frames is 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 * EVERY term was a duplicate of what the gap check was for — nothing else sets frames to zero.

Tests

a_re_shown_panel_starts_its_window_over: a run, a hide with the window frozen 800 ms in the past (EVERY is 500 ms, so the old condition does not fire), a re-show — worst is 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).

**@⁠sh3nw4ld** on GitHub · 2026-11-29 14:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2565) `sh3nw4ld:fix-panel-stale-window` → `main` · +170 −63 · 32 files · 9 commits · merged 2026-11-30 14:12 UTC ## 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 in `since` and `last`: the first line printed the gap as a frame time (`LONGEST` about a second a frame at a ~0.8 s hide) and spread every counter over it. `frames` is 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 * EVERY` term was a duplicate of what the gap check was for — nothing else sets `frames` to zero. ## Tests `a_re_shown_panel_starts_its_window_over`: a run, a hide with the window frozen 800 ms in the past (`EVERY` is 500 ms, so the old condition does not fire), a re-show — `worst` is 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).
The refresh window reset only after a hidden gap of over a second.
Re-shown sooner, it kept the hidden time in since and last: the first
line printed the gap as a frame time (LONGEST about a second) and
spread every counter over it. frames is zero only after a hide, so it
alone decides; the test hides the panel for most of a second.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 14:28:09 +00:00
github-bot force-pushed github-bot/gh-2565 from 16f192ecc7 to c6e6d176fc 2026-11-29 15:36:06 +00:00 Compare
github-bot force-pushed github-bot/gh-2565 from c6e6d176fc to e1b22bb2ee 2026-11-29 15:47:18 +00:00 Compare
github-bot force-pushed github-bot/gh-2565 from e1b22bb2ee to 88542677e2 2026-11-29 16:04:27 +00:00 Compare
github-bot force-pushed github-bot/gh-2565 from 88542677e2 to 0e938a806b 2026-11-29 16:21:23 +00:00 Compare
github-bot force-pushed github-bot/gh-2565 from 0e938a806b to abbc21bc81 2026-11-29 16:27:00 +00:00 Compare
github-bot force-pushed github-bot/gh-2565 from abbc21bc81 to cd4091d86c 2026-11-29 16:43:51 +00:00 Compare
github manually merged commit ac6b767d8f into main 2026-11-30 14:17:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2565
No description provided.