Skip to content

VIctory-NVIDIA picks: lifetime fixes, raw view clamp, tearing present (all switches off) - #17

Open
oceansde012 wants to merge 12 commits into
mainfrom
claude/project-thread-9be8al
Open

oceansde012 wants to merge 12 commits into
mainfrom
claude/project-thread-9be8al

Conversation

@oceansde012

@oceansde012 oceansde012 commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Requested by Vlad · project thread

Picks from trustno1-coder/VIctory-NVIDIA (GPL-3.0-or-later; original sources credited in each commit, cherry-picked with -x). No XCL files taken. Deduped against #14/#15. With no switches set, behaviour equals f4b48ad.

Switches (all off by default)

  • VICTORY_NV_LIFETIME_FIXES=1:
    • 1d3b414 (fxceless #1320): split submissions return their descriptor table slots (long-run leak).
    • 8e9f11d: UPCOPY_CHECK forgets copies that are gone (only matters with VICTORY_UPCOPY_CHECK).
    • 108a897 (avatarmanz #316): XMem physical page numbers reused before the title's 21-bit wrap (past ~124 GiB of allocations a number came back truncated).
  • VICTORY_RAW_VIEW_CLAMP=1 (aec85ef, fxceless #1266): raw buffer views clamped to their buffer.
  • VICTORY_TEARING=1 (from 8fc2254): swap chain with ALLOW_TEARING, presents don't wait for the refresh; falls back on a refused present. Present mode only, no frame generation.

Dropped / not taken

Analysis: project report reports/victory-nvidia-35fps-2026-11-28.md.

Checks

🤖 Generated with Claude Code

https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn

CwWwWwW and others added 7 commits November 28, 2026 10:20
…ack (#1320)

The lists a split submission runs at once are not detached, so nothing
returned their fresh tables' dynamic slots before the title reset them:
a long run lost descriptor slots it never got back. `submit_cut` already
does this after the same `execute`, for the same reason.

Ported from fxceless/victory-fork af23c65 (fork pull request #1320).

(cherry picked from commit 7eb4441181f06a4d5d466cf7fc242c1427462d32)
(cherry picked from commit 1d3b4143abea2a3835cb55b4b657d1f0f5e8da9b)
KNOWN (VICTORY_UPCOPY_CHECK) kept an entry per copy ever declared or
fetched. The look at rest now keeps only the ids still in
carded_copies(), before anything in it that can fail. A copy's id is
never given to another copy, and nothing declares or fetches while the
look runs (the submission lock is held).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit 2e7e626eeb51a0482f29fec2fb16aa75259b849b)
(cherry picked from commit 8e9f11d618534e5d9deac73488fb0ccdf5b5c75d)
(cherry picked from commit bc282695e539f09d881c61edd69a1552d410f8fb)
(cherry picked from commit 2cffd2dfbae99a959c14db9a3c1e25e2d879c6e7)
… releases

Once the shapes of placed views are full (4,194,304 after half an hour of play), every placed view the title writes became a table entry kept for the run: 34.9 million entries and 16.7 GB after 70 minutes on Series S, with the frame rate halved as memory went past physical RAM. Such entries now sit in a queue, oldest first; past VICTORY_OWNERLESS_VIEWS (default 1,048,576; 0 keeps all) the oldest is freed under a new generation, so a descriptor still naming it reads as stale, as one naming a released resource's view does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit d3626d2)
(cherry picked from commit 89fd93613ceda7abdb63986287f13a2394f70c3d)
…_CLAMP, on; =0 restores)

raw_at / raw_uav_at: a range past the buffer's end is shortened to the
whole dwords that fit; an unaligned start, or one with no whole dword left,
becomes a null view. The meter line counts the cuts (past end, shortened,
sub-dword, unaligned) for SRVs and UAVs. On by default;
VICTORY_RAW_VIEW_CLAMP=0 gives the old descriptors.

Original author: lichenlang89 (fxceless/victory-fork pull request 1266,
dd5e8c9e). Ported by hand from CuteBooty/victory-8gb, same code and tests;
the counters go into this tree's meter line in host.rs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
(cherry picked from commit aec85efb10777281b1f3dc586239d113640ed249)
…y DeepSeek)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRp6ZXFGoy77zGqibMF
(cherry picked from commit 62cb135)

Copy link
Copy Markdown
Owner Author

CI check is red because of clippy on code this PR does not touch: transmute used without annotations in crates/victory-loader/src/write_sites.rs:349/425, plus the texture.rs:1346 precedence lint (that one is fixed here via the pick of 62cb135 from #16). Open PRs #12–#16 fail the same check job, so this is the base/CI toolchain, not this diff. The write_sites fix belongs in a separate base PR.


Generated by Claude Code

illuminatedfellow and others added 3 commits November 28, 2026 10:41
…s the title's 21 bits

Port of avatarmanz/VIctory-7900XTX#316 as carried in trustno1-coder/VIctory-NVIDIA 108a897.
Test-module conflict resolved by keeping only this commit's test.

(cherry picked from commit 108a8972 in trustno1-coder/VIctory-NVIDIA)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn
…code by DeepSeek)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn
… by DeepSeek)

Port of the swap-chain part of trustno1-coder/VIctory-NVIDIA 8fc2254: with the
switch on and the system allowing it, the swap chain gets ALLOW_TEARING and
presents use DXGI_PRESENT_ALLOW_TEARING, so a focused window does not wait for
the next refresh. A refused present falls back to normal presents for the
rest of the run. Present mode only: no frame generation, picture unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn
@oceansde012 oceansde012 changed the title VIctory-NVIDIA picks: long-run leak fixes, raw view clamp, XMem page numbers, opt-in tearing present VIctory-NVIDIA picks: leak fixes, XMem page numbers, raw view clamp and tearing present (switches off) Nov 28, 2026
oceansde012 and others added 2 commits November 28, 2026 10:46
…e behaviour stays frozen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn
…S=1 (off by default; code by DeepSeek)

Split-submission table slots, up-copy check forgetting gone copies and XMem
page-number reuse now run only with the switch on; off keeps f4b48ad
behaviour. XMem unit tests run with the new behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRkq9FEXaXsKnfJYUZn
@oceansde012 oceansde012 changed the title VIctory-NVIDIA picks: leak fixes, XMem page numbers, raw view clamp and tearing present (switches off) VIctory-NVIDIA picks: lifetime fixes, raw view clamp, tearing present (all switches off) Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants