Skip to content

GPU: the proven performance switches are on by default - #11

Merged
wbkepler merged 1 commit into
mainfrom
gpu/proven-switches-on
Nov 25, 2026
Merged

wbkepler merged 1 commit into
mainfrom
gpu/proven-switches-on

Conversation

@wbkepler

Copy link
Copy Markdown
Owner

What

VICTORY_GPU_UPLOAD, VICTORY_GPU_UPLOAD_WRITES and VICTORY_LAZY_COPY_BACK are on unless set to 0. A new switch::on_by_default reads them; unit tests keep the old default (off when unset) because they check the paths these switches replace. VICTORY_INDIRECT_CLAMP=batch stays 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

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>
@wbkepler
wbkepler merged commit b8542dd into main Nov 25, 2026
1 check failed
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.

1 participant