Skip to content

Port NickJBc’s optional 256-thread GPU memory comparison - #5

Draft
FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
performance/card-hash-wide
Draft

FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
performance/card-hash-wide

Conversation

@FermentoCode

Copy link
Copy Markdown
Owner

This ports NickJBc's 256-thread shader and host integration from fxceless/victory-fork#493. The shader source matches the original contribution. The port adds regression coverage and falls back to the serial shader when creating the wide pipeline fails.

Set VICTORY_CARD_HASH_WIDE=1 at startup to test. The default uses the serial algorithm. The wide variant uses a different internal 128-bit hash. Uploads and subsequent comparisons select the same algorithm for the device lifetime.

On an RTX 3090 Ti, an instrumented test executable with this shader recorded 0.875 ms per sampled pending comparison batch in the serial run (57 samples) and 0.057 ms in the wide run (99). The two 100-frame windows averaged 3.92 and 3.95 FPS. Median draw counts were 4,825 and 6,446 respectively. Camera orientation, workload per batch and sampling coverage differed. A controlled frame-rate gain has yet to be established. Neither window reached a stable 5 FPS.

The application built on this fork. Ten focused tests passed, including actual D3D12 WARP executions of both variants covering partial pieces, paired sign-bit edits, restoration and compare-and-store. The game tests ran on the separate instrumented executable.

Port NickJBc's wide shader and host integration from
fxceless#493, commit ccdf4c4.
VICTORY_CARD_HASH_WIDE=1 selects one algorithm for uploads and compares
for the lifetime of the device. The default remains the serial shader.
The 128-bit hash is internal and differs between the two algorithms.

Fall back to the serial path if creating the wide roots or PSO fails.
Exercise both on D3D12 WARP with partial pieces, paired sign-bit edits,
and compare-only and compare-and-store semantics across reversions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants