perf: tune measured NVIDIA copy paths #10

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

@⁠izezo on GitHub · 2026-11-27 15:34 UTC · original
izezo:codex/measured-nvidia-defaults → main · +59 −1 · 3 files · 1 commits · open

Apply three measured defaults for NVIDIA cards: combine adjacent card-memory hash ranges, fetch shader-written data on the copy queue, and perform the second card-side buffer step.

In two controlled 330-second runs per step on an RTX 3060, median FPS rose from 10.4 to 11.8-12.0 after range hashing, to 12.3-12.5 after copy-queue fetch, and to 13.8-14.1 after card steps. The compiled preset reproduced 14.07 and 14.18 FPS. VICTORY_TUNED=0 and explicit environment overrides retain their existing behavior.

The card-step mode trades some shadow fidelity for speed. These are short-run results; hundreds of commands are still dropped and this does not establish full rendering correctness or long-term stability. See docs/optimization-trials.md for accepted and rejected trials and the measurement limits.

Validation: cargo test --workspace --locked, both documented Clippy commands, and cargo xtask policy passed on the updated base.

AI-assisted.

**@⁠izezo** on GitHub · 2026-11-27 15:34 UTC · [original](https://github.com/brothernog/rota/pull/10) `izezo:codex/measured-nvidia-defaults` → `main` · +59 −1 · 3 files · 1 commits · open Apply three measured defaults for NVIDIA cards: combine adjacent card-memory hash ranges, fetch shader-written data on the copy queue, and perform the second card-side buffer step. In two controlled 330-second runs per step on an RTX 3060, median FPS rose from 10.4 to 11.8-12.0 after range hashing, to 12.3-12.5 after copy-queue fetch, and to 13.8-14.1 after card steps. The compiled preset reproduced 14.07 and 14.18 FPS. `VICTORY_TUNED=0` and explicit environment overrides retain their existing behavior. The card-step mode trades some shadow fidelity for speed. These are short-run results; hundreds of commands are still dropped and this does not establish full rendering correctness or long-term stability. See `docs/optimization-trials.md` for accepted and rejected trials and the measurement limits. Validation: `cargo test --workspace --locked`, both documented Clippy commands, and `cargo xtask policy` passed on the updated base. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:46:33 +00:00
Author
Owner

@⁠brothernog on GitHub · 2026-11-27 15:40 UTC · original

Thanks for the careful write-up, including the rejected trials and the limits. The numbers line up with what we see: copy-back and preparing dominate the frame here too.

Before changing the defaults, we'll repeat the three steps on an 8 GB RTX 3050 (PCIe Gen3 x8, so the copy paths may behave differently than on a 3060), with someone watching the image, since VICTORY_CARD_STEPS softened shadows in earlier runs on this card. We'll report back here with the numbers.

This comment was AI-assisted.

**@⁠brothernog** on GitHub · 2026-11-27 15:40 UTC · [original](https://github.com/brothernog/rota/pull/10#issuecomment-7222353756) Thanks for the careful write-up, including the rejected trials and the limits. The numbers line up with what we see: copy-back and preparing dominate the frame here too. Before changing the defaults, we'll repeat the three steps on an 8 GB RTX 3050 (PCIe Gen3 x8, so the copy paths may behave differently than on a 3060), with someone watching the image, since `VICTORY_CARD_STEPS` softened shadows in earlier runs on this card. We'll report back here with the numbers. This comment was AI-assisted.
This pull request can be merged automatically.
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/10/head:github-bot/gh-10'
git switch 'github-bot/gh-10'

Merge

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