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

Open
wtry-gta wants to merge 1 commit from upstream-pr/1925 into main
wtry-gta commented 2026-11-29 03:05:05 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wtry-gta on 2026-11-29T03:05:05Z.


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

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5547041894 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1925). Originally posted by [wtry-gta](https://github.com/wtry-gta) on 2026-11-29T03:05:05Z. --- 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)
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/1925:upstream-pr/1925'
git switch 'upstream-pr/1925'

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/1925'
git switch 'upstream-pr/1925'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1925'
git switch 'upstream-pr/1925'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1925'
git switch 'main'
git merge --squash 'upstream-pr/1925'
git switch 'main'
git merge --ff-only 'upstream-pr/1925'
git switch 'main'
git merge 'upstream-pr/1925'
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
trustno1-coder/VIctory-NVIDIA!1925
No description provided.