Repository navigation
Port NickJBc’s optional 256-thread GPU memory comparison - #5
Draft
FermentoCode wants to merge 1 commit into
Draft
FermentoCode wants to merge 1 commit into
FermentoCode wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=1at 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.