Skip to content

Pr/465 integration rtx3080ti - #538

Open
pug205gti6 wants to merge 22 commits into
fxceless:mainfrom
pug205gti6:pr/465-integration-rtx3080ti
Open

pug205gti6 wants to merge 22 commits into
fxceless:mainfrom
pug205gti6:pr/465-integration-rtx3080ti

Conversation

@pug205gti6

Copy link
Copy Markdown

No description provided.

gdawid9407 and others added 22 commits November 24, 2026 19:33
…alone logged commands=0; the core of upstream #1735)
…th one wait (VICTORY_CARD_BATCH=0: one each, as before)
…atch, list preludes and the card compare (ours: ...)
…es changed (written-but-same pages are not sent up)
…elines, found by name in shaders.rpf, in every build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… clamping

THE BUG.
Every ExecuteIndirect call (even when batched via VICTORY_INDIRECT_WINDOW=1) runs a clamp compute shader between two global UAV barriers and state transitions and invalidates cached host compute pipeline/root-signature state.

WHY NOT HYPOTHETICAL.
In gameplay, thousands of indirect mesh draws per frame pay compute/graphics mode switches, scratch-buffer copies, barrier stalls, and state rebinds even when the title argument buffers are already valid.

THE FIX.
Add VICTORY_INDIRECT_CLAMP (enabled by default; 0/false/no/off disables clamping). When disabled, draw::State::indirect validates record alignment/stride via indirect::validate_layout, refreshes the argument/count shadow ranges, emits a single UAV barrier (indirect::wait_direct), and executes ExecuteIndirect directly from the title argument buffer without running the clamp shader, scratch copy, state transitions, or pipeline invalidation.

SCOPE.
Only the indirect argument clamping path in indirect.rs and draw.rs. Default behavior (clamping enabled) is unchanged.
…n copies by size) and of indirect executions with the same state back to back; timing names preludes by what they do

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ut VICTORY_LATE; prelude timing names that survive the command key

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in their list, and stretches of indirect draws between dispatches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inct 64 KiB pages, 4 KiB pages per written 64 KiB page, pages flagged after our own copy-backs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	crates/victory-gpu/src/resource.rs
#	crates/victory-gpu/src/shadow.rs
…ws the host refuses (Series S); diagnostics count why indirect calls miss the clamp window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RecompLive pushed a commit to RecompLive/victory-fork that referenced this pull request Nov 25, 2026
oceansde012 pushed a commit to oceansde012/victory-gta6 that referenced this pull request Nov 25, 2026
xmem: report allocations the host refuses
(cherry picked from commit a34ac58)
@Revens2

Revens2 commented Nov 25, 2026

Copy link
Copy Markdown

Duplicate of #465: @LeonardoS11 opened this patch 45 minutes earlier, and gh pr diff returns the same bytes for both (+2288/-268 on 23 file(s), same title).

The original also carries the author's description, which this PR does not.

Both PRs are CONFLICTING, so this copy does not resolve the conflict it was probably made for.

Please continue in #465 so the review history and any test data stay in one place.
Thanks.

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.

10 participants