Add telemetry, VRAM budgeting, and frame pacing controls #1190

Open
mokillos wants to merge 4 commits from upstream-pr/1193 into main
mokillos commented 2026-11-25 23:25:10 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by mokillos on 2026-11-25T23:25:10Z.


Summary

  • Expand the overlay with FPS, average frame time, process CPU, renderer GPU queue occupancy, process working-set RAM, and current VRAM use / live DXGI budget. Samples update once a second; unavailable readings show --.
  • Apply a soft VRAM admission allowance for streamed textures and optional GPU buffer copies: 80% of dedicated capacity capped by the live process budget (or 80% of the local budget on UMA).
  • Keep the title caption stable, enable thin LTO in release builds, and add repeatable benchmark and frame-log summary scripts.
  • Add an opt-in frame pacing override. -FrameRate 40 (or VICTORY_FRAME_RATE=40) uses a 25 ms virtual flip interval when the title requests 33.333 ms. The default follows the title. Changing virtual timing can affect title behavior.

GPU overlay percentage is timed renderer queue work, not total adapter utilization. The VRAM allowance is a soft allocation policy, not a reservation or hard cap.

Verification

  • cargo check -p victory — passed (one existing dead-code warning for placed_filler_twins).
  • cargo build --release -p victory — passed.
  • Benchmark script path validation passed with -FrameRate 40 and with the default title interval.
  • git diff --check — passed.
  • cargo fmt --all -- --check reports formatting differences across existing workspace files; no workspace-wide reformat is included.

Performance capture

Windows 11, Ryzen 7 7800X3D, RTX 4060 Ti 16 GB (driver 617.14), 32 GB RAM; Series X profile, 3840×2160 output. The title requested a 33.333 ms interval; with the override, the menu reached 40 FPS. A 60.55-second boat-scene sample measured 11.68 FPS average, P50 86 ms, P95 137 ms, P99 167 ms, two frames over 250 ms, and an 822 ms worst frame.

That timing capture used an experiment build based on upstream 32b31f7, before this PR's telemetry and VRAM changes. It validates the frame-interval override, not the entire PR build. The boat scene remains below 40 FPS.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6615848706 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1193). Originally posted by [mokillos](https://github.com/mokillos) on 2026-11-25T23:25:10Z. --- ## Summary - Expand the overlay with FPS, average frame time, process CPU, renderer GPU queue occupancy, process working-set RAM, and current VRAM use / live DXGI budget. Samples update once a second; unavailable readings show `--`. - Apply a soft VRAM admission allowance for streamed textures and optional GPU buffer copies: 80% of dedicated capacity capped by the live process budget (or 80% of the local budget on UMA). - Keep the title caption stable, enable thin LTO in release builds, and add repeatable benchmark and frame-log summary scripts. - Add an opt-in frame pacing override. `-FrameRate 40` (or `VICTORY_FRAME_RATE=40`) uses a 25 ms virtual flip interval when the title requests 33.333 ms. The default follows the title. Changing virtual timing can affect title behavior. GPU overlay percentage is timed renderer queue work, not total adapter utilization. The VRAM allowance is a soft allocation policy, not a reservation or hard cap. ## Verification - `cargo check -p victory` — passed (one existing dead-code warning for `placed_filler_twins`). - `cargo build --release -p victory` — passed. - Benchmark script path validation passed with `-FrameRate 40` and with the default title interval. - `git diff --check` — passed. - `cargo fmt --all -- --check` reports formatting differences across existing workspace files; no workspace-wide reformat is included. ## Performance capture Windows 11, Ryzen 7 7800X3D, RTX 4060 Ti 16 GB (driver 617.14), 32 GB RAM; Series X profile, 3840×2160 output. The title requested a 33.333 ms interval; with the override, the menu reached 40 FPS. A 60.55-second boat-scene sample measured 11.68 FPS average, P50 86 ms, P95 137 ms, P99 167 ms, two frames over 250 ms, and an 822 ms worst frame. That timing capture used an experiment build based on upstream `32b31f7`, before this PR's telemetry and VRAM changes. It validates the frame-interval override, not the entire PR build. The boat scene remains below 40 FPS.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1193:upstream-pr/1193'
git switch 'upstream-pr/1193'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1193'
git switch 'upstream-pr/1193'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1193'
git switch 'upstream-pr/1193'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1193'
git switch 'main'
git merge --squash 'upstream-pr/1193'
git switch 'main'
git merge --ff-only 'upstream-pr/1193'
git switch 'main'
git merge 'upstream-pr/1193'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
fxceless/victory-fork!1190
No description provided.