Submit-thread speedups, in-session A/B, teleport test tool, texture cap, ambient floor #1925

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

@⁠wtry-gta on GitHub · 2026-11-29 03:05 UTC · original
wtry-gta:contrib/wtry → main · +5718 −784 · 35 files · 1 commits · open

All new behaviour is behind VICTORY_* switches. Measured on a Ryzen 9 7900X3D with an RTX 4070 Ti SUPER 16 GB and
32 GB of RAM, in the busy street and on a teleport route.

Measured wins:

  • Submit thread:
    • VICTORY_SUBMIT_FAST, VICTORY_SUBMIT_FAST_2: bury/land aside, a lock-free fence settle, ask_once_all in
      parallel, targeted range invalidation in Batch::title_written_range, and a combined card sync. Together about
      +1.2 fps.
    • VICTORY_GUARDS_SHARD: the guard locks are split into 64 stripes by address. +1.33 fps in an in-session A/B,
      faster in 4 of 4 phases.
    • VICTORY_SWEEP_ASYNC: the sweep runs on a background thread and resource::let_go_idle works in chunks. +0.97 fps,
      faster in 4 of 4 phases. Before, a single sweep took 44-73 ms on the submit thread.
    • VICTORY_AHEAD_SEARCH: the asked-ahead page ranges are looked up by bisection instead of a scan.
    • Thin LTO in release.
  • VICTORY_WINDOWS_BAR_MB=1024: fewer and shorter stalls (lowest 5 s window 16.6/23.3 against 10.0/20.1 fps).
  • Two play defaults after the merge with f9dfb76:
    • VICTORY_LDS_LAST_RESORT=1 again. Without it, 24 wave64 compute programs are dropped on 32-lane NVIDIA waves:
      TAA frame stats and resolves, SR denoise, particles, water and shadow classification. The picture went white
      toward the sun.
    • VICTORY_TITLE_FPS=off. Here, 59 cost about 4 fps and caused 1 s frames.

Test tools:

  • VICTORY_AB in release builds (with _GO, _GO_DELAY, _PHASES): flips switches live in phases within one session.
    The spread is about 0.4 fps, against about 2 fps between restarts.
  • VICTORY_LONG_FRAME=: long frames broken down by stage.
  • VICTORY_TELEPORT=t:x,y,z;...: a scripted player teleport for repeatable area loads.
    • With _HOLD_MS, _GUARD (a list, one value per jump), _PROBE and _FILE.
    • F8 saves the player's position (VICTORY_TP_RECORD), and a route can use those points as p.
    • The log notes the title's own put-backs and respawns.
    • scripts/teleport-report.py sums up each jump.

Other:

  • VICTORY_TEXTURE_MAX=: a texture cap that keeps only the levels at or below it on the card.
    VICTORY_BASE_ARRAYS makes array views of capped textures start at the right level.
  • VICTORY_AMBIENT_FLOOR and VICTORY_AMBIENT_DAY: an indirect-light floor relative to exposure.
    VICTORY_AMBIENT_STATS shows its numbers on screen.
  • A per-frame "texture slots per frame" counter line: stale slots, neutral stand-ins, rewritten slots.
  • VICTORY_TEXBACK_ASYNC: texture read-backs on their own thread.

Measured neutral, so left off: VICTORY_PARALLEL_PRELUDE (-0.3 fps), VICTORY_MERGE_SUBMISSIONS,
VICTORY_SWAP_BUFFERS 3 against 2, VICTORY_FREE_UNMAPPED.

Known open issue: some shorelines draw black and glossy. Neither the texture cap nor BASE_ARRAYS causes it.
VICTORY_WATER_LIGHT=1 ended a session there.

🤖 Generated with Claude Code

**@⁠wtry-gta** on GitHub · 2026-11-29 03:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1925) `wtry-gta:contrib/wtry` → `main` · +5718 −784 · 35 files · 1 commits · open All new behaviour is behind VICTORY_* switches. Measured on a Ryzen 9 7900X3D with an RTX 4070 Ti SUPER 16 GB and 32 GB of RAM, in the busy street and on a teleport route. Measured wins: - Submit thread: - VICTORY_SUBMIT_FAST, VICTORY_SUBMIT_FAST_2: bury/land aside, a lock-free fence settle, ask_once_all in parallel, targeted range invalidation in Batch::title_written_range, and a combined card sync. Together about +1.2 fps. - VICTORY_GUARDS_SHARD: the guard locks are split into 64 stripes by address. +1.33 fps in an in-session A/B, faster in 4 of 4 phases. - VICTORY_SWEEP_ASYNC: the sweep runs on a background thread and resource::let_go_idle works in chunks. +0.97 fps, faster in 4 of 4 phases. Before, a single sweep took 44-73 ms on the submit thread. - VICTORY_AHEAD_SEARCH: the asked-ahead page ranges are looked up by bisection instead of a scan. - Thin LTO in release. - VICTORY_WINDOWS_BAR_MB=1024: fewer and shorter stalls (lowest 5 s window 16.6/23.3 against 10.0/20.1 fps). - Two play defaults after the merge with f9dfb76: - VICTORY_LDS_LAST_RESORT=1 again. Without it, 24 wave64 compute programs are dropped on 32-lane NVIDIA waves: TAA frame stats and resolves, SR denoise, particles, water and shadow classification. The picture went white toward the sun. - VICTORY_TITLE_FPS=off. Here, 59 cost about 4 fps and caused 1 s frames. Test tools: - VICTORY_AB in release builds (with _GO, _GO_DELAY, _PHASES): flips switches live in phases within one session. The spread is about 0.4 fps, against about 2 fps between restarts. - VICTORY_LONG_FRAME=<ms>: long frames broken down by stage. - VICTORY_TELEPORT=t:x,y,z;...: a scripted player teleport for repeatable area loads. - With _HOLD_MS, _GUARD (a list, one value per jump), _PROBE and _FILE. - F8 saves the player's position (VICTORY_TP_RECORD), and a route can use those points as p<n>. - The log notes the title's own put-backs and respawns. - scripts/teleport-report.py sums up each jump. Other: - VICTORY_TEXTURE_MAX=<px>: a texture cap that keeps only the levels at or below it on the card. VICTORY_BASE_ARRAYS makes array views of capped textures start at the right level. - VICTORY_AMBIENT_FLOOR and VICTORY_AMBIENT_DAY: an indirect-light floor relative to exposure. VICTORY_AMBIENT_STATS shows its numbers on screen. - A per-frame "texture slots per frame" counter line: stale slots, neutral stand-ins, rewritten slots. - VICTORY_TEXBACK_ASYNC: texture read-backs on their own thread. Measured neutral, so left off: VICTORY_PARALLEL_PRELUDE (-0.3 fps), VICTORY_MERGE_SUBMISSIONS, VICTORY_SWAP_BUFFERS 3 against 2, VICTORY_FREE_UNMAPPED. Known open issue: some shorelines draw black and glossy. Neither the texture cap nor BASE_ARRAYS causes it. VICTORY_WATER_LIGHT=1 ended a session there. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
All new behaviour is behind VICTORY_* switches. Measured on a Ryzen 9 7900X3D with an RTX 4070 Ti SUPER 16 GB and
32 GB of RAM, in the busy street and on a teleport route.

Measured wins:
- Submit thread:
  - VICTORY_SUBMIT_FAST, VICTORY_SUBMIT_FAST_2: bury/land aside, a lock-free fence settle, ask_once_all in
    parallel, targeted range invalidation in Batch::title_written_range, and a combined card sync. Together about
    +1.2 fps.
  - VICTORY_GUARDS_SHARD: the guard locks are split into 64 stripes by address. +1.33 fps in an in-session A/B,
    faster in 4 of 4 phases.
  - VICTORY_SWEEP_ASYNC: the sweep runs on a background thread and resource::let_go_idle works in chunks. +0.97 fps,
    faster in 4 of 4 phases. Before, a single sweep took 44-73 ms on the submit thread.
  - VICTORY_AHEAD_SEARCH: the asked-ahead page ranges are looked up by bisection instead of a scan.
  - Thin LTO in release.
- VICTORY_WINDOWS_BAR_MB=1024: fewer and shorter stalls (lowest 5 s window 16.6/23.3 against 10.0/20.1 fps).
- Two play defaults after the merge with f9dfb76:
  - VICTORY_LDS_LAST_RESORT=1 again. Without it, 24 wave64 compute programs are dropped on 32-lane NVIDIA waves:
    TAA frame stats and resolves, SR denoise, particles, water and shadow classification. The picture went white
    toward the sun.
  - VICTORY_TITLE_FPS=off. Here, 59 cost about 4 fps and caused 1 s frames.

Test tools:
- VICTORY_AB in release builds (with _GO, _GO_DELAY, _PHASES): flips switches live in phases within one session.
  The spread is about 0.4 fps, against about 2 fps between restarts.
- VICTORY_LONG_FRAME=<ms>: long frames broken down by stage.
- VICTORY_TELEPORT=t:x,y,z;...: a scripted player teleport for repeatable area loads.
  - With _HOLD_MS, _GUARD (a list, one value per jump), _PROBE and _FILE.
  - F8 saves the player's position (VICTORY_TP_RECORD), and a route can use those points as p<n>.
  - The log notes the title's own put-backs and respawns.
  - scripts/teleport-report.py sums up each jump.

Other:
- VICTORY_TEXTURE_MAX=<px>: a texture cap that keeps only the levels at or below it on the card.
  VICTORY_BASE_ARRAYS makes array views of capped textures start at the right level.
- VICTORY_AMBIENT_FLOOR and VICTORY_AMBIENT_DAY: an indirect-light floor relative to exposure.
  VICTORY_AMBIENT_STATS shows its numbers on screen.
- A per-frame "texture slots per frame" counter line: stale slots, neutral stand-ins, rewritten slots.
- VICTORY_TEXBACK_ASYNC: texture read-backs on their own thread.

Measured neutral, so left off: VICTORY_PARALLEL_PRELUDE (-0.3 fps), VICTORY_MERGE_SUBMISSIONS,
VICTORY_SWAP_BUFFERS 3 against 2, VICTORY_FREE_UNMAPPED.

Known open issue: some shorelines draw black and glossy. Neither the texture cap nor BASE_ARRAYS causes it.
VICTORY_WATER_LIGHT=1 ended a session there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 03:06:56 +00:00
This pull request has changes conflicting with the target branch.
  • Cargo.toml
  • apps/victory/src/run.rs
  • crates/victory-gpu/src/ab.rs
  • crates/victory-gpu/src/ambient.rs
  • crates/victory-gpu/src/descriptor.rs
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/host/card_steps.rs
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-gpu/src/host/send.rs
  • crates/victory-gpu/src/lib.rs
  • crates/victory-gpu/src/pool.rs
  • crates/victory-gpu/src/queue.rs
  • crates/victory-gpu/src/queue/behind.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/shadow.rs
  • crates/victory-gpu/src/switch.rs
  • crates/victory-gpu/src/texback.rs
  • crates/victory-gpu/src/texture/ahead.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-loader/src/lib.rs
  • scripts/play-foxhound.ps1
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

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