GPU: synchronize frame interval resets with tick reservations #2479

Open
github-bot wants to merge 3 commits from github-bot/gh-2479 into main AGit
Owner

@⁠VlREX on GitHub · 2026-11-25 14:27 UTC · original
VlREX:fix/frame-interval-clock-lock → main · +33 −7 · 1 files · 3 commits · draft

set_interval reads the last reserved ticks before acquiring CLOCK. A concurrent next_tick can reserve another tick in between, leaving the new interval anchored to an older tick and potentially adding an interval to the next wait for that event kind.

Hold the same CLOCK lock around the LAST scan and the clock replacement. This keeps interval resets ordered with the reservations introduced in #174.

Verified that the patch is one commit on upstream main and only changes frame.rs. Rust tests were not run locally. No title data was used.

**@⁠VlREX** on GitHub · 2026-11-25 14:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/2479) `VlREX:fix/frame-interval-clock-lock` → `main` · +33 −7 · 1 files · 3 commits · draft `set_interval` reads the last reserved ticks before acquiring `CLOCK`. A concurrent `next_tick` can reserve another tick in between, leaving the new interval anchored to an older tick and potentially adding an interval to the next wait for that event kind. Hold the same `CLOCK` lock around the `LAST` scan and the clock replacement. This keeps interval resets ordered with the reservations introduced in #174. Verified that the patch is one commit on upstream `main` and only changes `frame.rs`. Rust tests were not run locally. No title data was used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:07:01 +00:00
Author
Owner

@⁠Bj0rnis on GitHub · 2026-11-25 14:41 UTC · original

Independent Windows 11 hardware + WARP verification of #2479 at b5e0caab (clean git merge-tree with origin/main 940d32f6, Rust 1.98.1 MSVC):

  • NVIDIA GeForce RTX 5070 Ti (real hardware): cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1 -> 144 passed, 2 failed, 2 ignored (only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on main 940d32f6; all frame::tests passed).
  • WARP (VICTORY_D3D12_WARP=1): 146 passed, 0 failed, 2 ignored (0.99s).
  • Clippy: cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings -> 0 warnings.
  • Asset policy: cargo xtask policy -> 182 files ok.

Not tested: live game workload / frame pacing soak test.

AI-assisted test run and summary.

**@⁠Bj0rnis** on GitHub · 2026-11-25 14:41 UTC · [original](https://github.com/Marvisak/VIctory/pull/2479#issuecomment-7165667657) Independent Windows 11 hardware + WARP verification of #2479 at `b5e0caab` (clean `git merge-tree` with `origin/main` `940d32f6`, Rust 1.98.1 MSVC): - **NVIDIA GeForce RTX 5070 Ti (real hardware):** `cargo test -p victory-gpu --features diagnostics --lib --locked -- --test-threads=1` -> **144 passed, 2 failed, 2 ignored** (only the 2 pre-existing #1744 NVIDIA 1M view-heap baseline failures also present on `main` `940d32f6`; all `frame::tests` passed). - **WARP (`VICTORY_D3D12_WARP=1`):** **146 passed, 0 failed, 2 ignored** (0.99s). - **Clippy:** `cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings` -> **0 warnings**. - **Asset policy:** `cargo xtask policy` -> **182 files ok**. Not tested: live game workload / frame pacing soak test. AI-assisted test run and summary.
Author
Owner

@⁠VlREX on GitHub · 2026-11-25 21:03 UTC · original

Native AMD / Windows 10 validation

CPU: AMD Ryzen 5 3600X
GPU: Radeon RX 5700 XT
Driver: 32.0.21045.29003
OS: Windows 10 Pro 19045
Rust: 1.98.1

  • Workspace check: PASS
  • Frame tests: 2/2 PASS
  • Eight-thread tick reservation test: PASS
  • Clippy (-D warnings): PASS
  • GitHub CI: PASS

Tested commit: 30a5f1d

Full GPU suite and live gameplay frame pacing
were not tested in this run.

AI-assisted development (ChatGPT).
Native verification using VIREX Test Studio 1.2.1.

**@⁠VlREX** on GitHub · 2026-11-25 21:03 UTC · [original](https://github.com/Marvisak/VIctory/pull/2479#issuecomment-7174544247) ### Native AMD / Windows 10 validation CPU: AMD Ryzen 5 3600X GPU: Radeon RX 5700 XT Driver: 32.0.21045.29003 OS: Windows 10 Pro 19045 Rust: 1.98.1 - Workspace check: PASS - Frame tests: 2/2 PASS - Eight-thread tick reservation test: PASS - Clippy (-D warnings): PASS - GitHub CI: PASS Tested commit: 30a5f1d Full GPU suite and live gameplay frame pacing were not tested in this run. AI-assisted development (ChatGPT). Native verification using VIREX Test Studio 1.2.1.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2479/head:github-bot/gh-2479'
git switch 'github-bot/gh-2479'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2479'
git switch 'github-bot/gh-2479'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2479'
git switch 'github-bot/gh-2479'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2479'
git switch 'main'
git merge --squash 'github-bot/gh-2479'
git switch 'main'
git merge --ff-only 'github-bot/gh-2479'
git switch 'main'
git merge 'github-bot/gh-2479'
git push origin 'main'
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/Marvisak--VIctory!2479
No description provided.