Repository navigation
GPU: the proven performance switches are on by default - #11
Merged
Merged
Conversation
VICTORY_GPU_UPLOAD, VICTORY_GPU_UPLOAD_WRITES and VICTORY_LAZY_COPY_BACK are now on unless set to 0 (switch::on_by_default). Unit tests keep the old default (off when unset), since they check the paths these switches replace and set a switch when they want one. VICTORY_INDIRECT_CLAMP=batch stays opt-in. 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.
What
VICTORY_GPU_UPLOAD,VICTORY_GPU_UPLOAD_WRITESandVICTORY_LAZY_COPY_BACKare on unless set to0. A newswitch::on_by_defaultreads them; unit tests keep the old default (off when unset) because they check the paths these switches replace.VICTORY_INDIRECT_CLAMP=batchstays opt-in (one frame of its run showed exploded triangles; cause not found).Measured
RTX 5090, diag build, 200 s with none of the switches set: the log reports all three on; world from about +55 s; steady world 360-410 ms/frame (2.4-2.8 fps), GPU 91-115 ms, preparing 197-230 ms, copy-back 58-70 ms; about 5,000 draws per frame; no device removal.
Checked
clippy (victory-gpu, victory with diagnostics, -D warnings), cargo test -p victory-gpu with one thread (186 passed), cargo xtask policy.
🤖 Generated with Claude Code