Buffers: small upload and shared buffers placed in blocks (VICTORY_SMALL_BUFFER_POOL; from mandy) #547

Open
github-bot wants to merge 1 commit from github-bot/gh-547 into main AGit
Owner

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:43 UTC · original
voiceovarian1-max:port-small-buffers → main · +607 −4 · 4 files · 1 commits · open

Upload and shared buffers of up to 4 MiB are placed in 64 MiB blocks made once (pool/small.rs),
each piece given back once its submissions have run (pool.rs give_at), instead of each being a
committed allocation of its own. On by default; VICTORY_SMALL_BUFFER_POOL=0 as before.

Ported from ProjectLeonida/mandy 0a2c75d84 and b759677d8 (NotRexed), after
trustno1-coder/VIctory-NVIDIA 95509b9; GPL-3.0(-or-later).

What is in it

  • crates/victory-gpu/src/host.rs | 10 +
  • crates/victory-gpu/src/host/prof.rs | 2 +-
  • crates/victory-gpu/src/pool.rs | 27 +-
  • crates/victory-gpu/src/pool/small.rs | 572 +++++++++++++++++++++++++++++++++++

Tested

  • cargo check --workspace --tests --locked on main 7dbcdcb: no errors, no warnings.
  • In the game: only together with the other ports from mandy, in one combined build (results to follow here before this leaves draft).

Not tested

  • This change on its own in the game; AMD and Intel cards; the Series X profile.

AI use

Claude Code with Claude Opus 5.5 ported this from mandy, resolved its conflicts with this tree and wrote this description.

🤖 Generated with Claude Code

**@⁠voiceovarian1-max** on GitHub · 2026-12-03 09:43 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/547) `voiceovarian1-max:port-small-buffers` → `main` · +607 −4 · 4 files · 1 commits · open Upload and shared buffers of up to 4 MiB are placed in 64 MiB blocks made once (pool/small.rs), each piece given back once its submissions have run (pool.rs give_at), instead of each being a committed allocation of its own. On by default; VICTORY_SMALL_BUFFER_POOL=0 as before. Ported from ProjectLeonida/mandy 0a2c75d84 and b759677d8 (NotRexed), after trustno1-coder/VIctory-NVIDIA 95509b9; GPL-3.0(-or-later). **What is in it** - `crates/victory-gpu/src/host.rs` | 10 + - `crates/victory-gpu/src/host/prof.rs` | 2 +- - `crates/victory-gpu/src/pool.rs` | 27 +- - `crates/victory-gpu/src/pool/small.rs` | 572 +++++++++++++++++++++++++++++++++++ **Tested** - `cargo check --workspace --tests --locked` on `main` 7dbcdcb: no errors, no warnings. - In the game: only together with the other ports from mandy, in one combined build (results to follow here before this leaves draft). **Not tested** - This change on its own in the game; AMD and Intel cards; the Series X profile. **AI use** Claude Code with Claude Opus 5.5 ported this from mandy, resolved its conflicts with this tree and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Upload and shared buffers of up to 4 MiB are placed in 64 MiB blocks made once (pool/small.rs),
each piece given back once its submissions have run (pool.rs give_at), instead of each being a
committed allocation of its own. On by default; VICTORY_SMALL_BUFFER_POOL=0 as before.

Ported from ProjectLeonida/mandy 0a2c75d84 and b759677d8 (NotRexed), after
trustno1-coder/VIctory-NVIDIA 95509b9; GPL-3.0(-or-later).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 09:46:11 +00:00
Author
Owner

@⁠voiceovarian1-max on GitHub · 2026-12-03 10:04 UTC · original

Combined test of this PR with #521, #543 and #544-#556, all merged onto main 7dbcdcb (branch fox-all of voiceovarian1-max/foxhound):

  • RTX 4070 Ti 12 GB (driver 617.14), i7-14700K, 32 GB, Windows 11 Pro 26300; release.
  • cargo test --workspace --locked -- --test-threads=4: 1,415 passed, 0 failed, 50 ignored (29 binaries), no SKIPPED.
  • Retail title, Series S profile, DLSS Balanced, 60 fps limit, keys pressed by the layer only (VICTORY_KEYS, no input from the PC): window scene 38-42 fps against 34-37 for main on the same boot; no device removal, no crash; a burst of 67 pictures showed no one-picture flicker of the character's clothes.
  • Not tested: each PR alone in the game; AMD and Intel; the Series X profile; long play.

Tested by Claude Code with Claude Opus 5.5 on the hardware named.

**@⁠voiceovarian1-max** on GitHub · 2026-12-03 10:04 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/547#issuecomment-7374689692) Combined test of this PR with #521, #543 and #544-#556, all merged onto `main` 7dbcdcb (branch fox-all of voiceovarian1-max/foxhound): - RTX 4070 Ti 12 GB (driver 617.14), i7-14700K, 32 GB, Windows 11 Pro 26300; release. - `cargo test --workspace --locked -- --test-threads=4`: 1,415 passed, 0 failed, 50 ignored (29 binaries), no `SKIPPED`. - Retail title, Series S profile, DLSS Balanced, 60 fps limit, keys pressed by the layer only (`VICTORY_KEYS`, no input from the PC): window scene 38-42 fps against 34-37 for `main` on the same boot; no device removal, no crash; a burst of 67 pictures showed no one-picture flicker of the character's clothes. - Not tested: each PR alone in the game; AMD and Intel; the Series X profile; long play. Tested by Claude Code with Claude Opus 5.5 on the hardware named.
Author
Owner

@⁠tillo88 on GitHub · 2026-12-04 03:40 UTC · original

Replay-bench measurement on v0.8.3.5: no measurable fps difference; less free system memory in all 4 runs

Measured: PR head 725623d merged onto release v0.8.3.5 (5e44415), with the PR's defaults (VICTORY_SMALL_BUFFER_POOL on), 4 measured runs in two separate jobs (each after a warm-up run that is not counted), against 7 runs of v0.8.3.5 without the PR, same route (~6.5 min).

run fps CPU prep ms median ms p95 ms p99 ms frames > 100 ms
release, mean of 7 (range) 36.88 (36.45-37.24) 18.85 (18.34-19.38) 28.21 (27.80-28.70) 38.66 (38.14-39.23) 45.70 (44.78-46.46) 14.7 (12-17)
PR #547 run 1 36.92 18.82 28.60 38.79 45.00 18
PR #547 run 2 36.65 18.50 29.00 40.21 46.90 14
PR #547 run 3 37.20 18.89 28.50 38.21 45.83 16
PR #547 run 4 36.64 18.84 28.60 38.91 45.74 13
PR #547, mean of 4 36.85 18.76 28.68 39.03 45.87 15.3

Mean fps: release 36.88, PR 36.85 (-0.1%): no measurable difference. CPU prep and p99 are inside the release's range, frames over 100 ms were 13-18 against 12-17; the median frame was 28.68 ms on average against 28.21 ms, at the top of the release's range (27.80-28.70) in 3 runs and just above it in one (29.00 ms).

What did differ in every run: the lowest value of the layer's periodic "physical memory free" line during the route. It was 4,229 / 3,913 / 4,265 / 4,235 MB in the 4 PR runs, against 5,158-6,093 MB in the 7 release runs. The free memory at start was the same (about 21 GB of 32 GB). It is not unique to this PR: on the same night one run of another PR went down to 3,979 MB and the other jobs (other PRs and tester options) stayed between 4,786 and 5,474 MB. So the low point is consistently about 1-2 GB lower with this PR, but how much of that is the PR and how much is the machine's state cannot be told from these runs.

Crashes: none in the PR runs and none in the release runs (no host GPU failure, no device lost).

Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default play-foxhound.ps1 settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap.

Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-12-04 03:40 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/547#issuecomment-7400338016) **Replay-bench measurement on v0.8.3.5: no measurable fps difference; less free system memory in all 4 runs** Measured: PR head `725623d` merged onto release **v0.8.3.5** (`5e44415`), with the PR's defaults (`VICTORY_SMALL_BUFFER_POOL` on), 4 measured runs in two separate jobs (each after a warm-up run that is not counted), against 7 runs of v0.8.3.5 without the PR, same route (~6.5 min). | run | fps | CPU prep ms | median ms | p95 ms | p99 ms | frames > 100 ms | |---|---|---|---|---|---|---| | release, mean of 7 (range) | 36.88 (36.45-37.24) | 18.85 (18.34-19.38) | 28.21 (27.80-28.70) | 38.66 (38.14-39.23) | 45.70 (44.78-46.46) | 14.7 (12-17) | | PR #547 run 1 | 36.92 | 18.82 | 28.60 | 38.79 | 45.00 | 18 | | PR #547 run 2 | 36.65 | 18.50 | 29.00 | 40.21 | 46.90 | 14 | | PR #547 run 3 | 37.20 | 18.89 | 28.50 | 38.21 | 45.83 | 16 | | PR #547 run 4 | 36.64 | 18.84 | 28.60 | 38.91 | 45.74 | 13 | | **PR #547, mean of 4** | **36.85** | **18.76** | **28.68** | **39.03** | **45.87** | **15.3** | Mean fps: release 36.88, PR 36.85 (-0.1%): **no measurable difference**. CPU prep and p99 are inside the release's range, frames over 100 ms were 13-18 against 12-17; the median frame was 28.68 ms on average against 28.21 ms, at the top of the release's range (27.80-28.70) in 3 runs and just above it in one (29.00 ms). What did differ in every run: the lowest value of the layer's periodic "physical memory free" line during the route. It was **4,229 / 3,913 / 4,265 / 4,235 MB** in the 4 PR runs, against **5,158-6,093 MB** in the 7 release runs. The free memory at start was the same (about 21 GB of 32 GB). It is not unique to this PR: on the same night one run of another PR went down to 3,979 MB and the other jobs (other PRs and tester options) stayed between 4,786 and 5,474 MB. So the low point is consistently about 1-2 GB lower with this PR, but how much of that is the PR and how much is the machine's state cannot be told from these runs. Crashes: none in the PR runs and none in the release runs (no host GPU failure, no device lost). Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default `play-foxhound.ps1` settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap. Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.
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/547/head:github-bot/gh-547'
git switch 'github-bot/gh-547'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-547'
git switch 'github-bot/gh-547'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-547'
git switch 'github-bot/gh-547'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-547'
git switch 'main'
git merge --squash 'github-bot/gh-547'
git switch 'main'
git merge --ff-only 'github-bot/gh-547'
git switch 'main'
git merge 'github-bot/gh-547'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.