Thin LTO and one codegen unit for the release profile #17

Open
Daayben wants to merge 1 commit from upstream-pr/17 into main
Daayben commented 2026-11-25 18:38:19 +00:00 (Migrated from github.com)

Imported from DexNom/VIctory. Originally posted by Daayben on 2026-11-25T18:38:19Z.


Adds lto = "thin" and codegen-units = 1 to the release profile (Key-rs, Marvisak/VIctory#96, as carried by Belobug/VIctory-Belobug-AMD). The commit keeps Key as its author.

The diag profile inherits release, so diagnostics builds get slower too.

Checked on Windows 11, RTX 4090, i9-10900F:

  • cargo build --locked --release -p victory --features diagnostics --bins: exit 0, 2 min 04 s from a warm dependency cache
  • cargo test --locked --release -p victory-gpu: 188 passed, 0 failed, 3 ignored (benchmarks)

No frame-time measurement in the game from me. Belobug reports no measurable frame-time change from this alone.

🤖 Generated with Claude Code

<!-- greyfinch-sync:DexNom/VIctory:issue:5497046310 --> Imported from [DexNom/VIctory](https://github.com/DexNom/VIctory/pull/17). Originally posted by [Daayben](https://github.com/Daayben) on 2026-11-25T18:38:19Z. --- Adds `lto = "thin"` and `codegen-units = 1` to the release profile (Key-rs, Marvisak/VIctory#96, as carried by Belobug/VIctory-Belobug-AMD). The commit keeps Key as its author. The `diag` profile inherits `release`, so diagnostics builds get slower too. Checked on Windows 11, RTX 4090, i9-10900F: - `cargo build --locked --release -p victory --features diagnostics --bins`: exit 0, 2 min 04 s from a warm dependency cache - `cargo test --locked --release -p victory-gpu`: 188 passed, 0 failed, 3 ignored (benchmarks) No frame-time measurement in the game from me. Belobug reports no measurable frame-time change from this alone. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
andrewDoing commented 2026-11-27 00:23:04 +00:00 (Migrated from github.com)

Imported from DexNom/VIctory. Originally posted by andrewDoing on 2026-11-27T00:23:04Z.


Independent Windows x64 release A/B at 20019d8 versus parent 2e01ab4 on Ryzen 7 5700X3D. Only the Cargo profile differs. The unmodified victory translate --jobs 1 processed 4,000 distinct synthetic packed compute programs in each run; both emitted all 4,000, 24,000 IR instructions, and byte-identical CLI summaries.

Six alternating fresh-process samples per profile after one warm-up each gave parent median 0.518 s (range 0.504–0.671) and candidate 0.522 s (0.483–0.672), so this short single-kernel-family workload showed no clear throughput difference. The PE shrank from 9,939,968 to 9,678,848 bytes (2.6%). This is not a general translation or frame-time claim.

Verification was AI-assisted with GPT-6.2 Astra.

<!-- greyfinch-sync:DexNom/VIctory:comment:7206414932 --> Imported from [DexNom/VIctory](https://github.com/DexNom/VIctory/pull/17#issuecomment-7206414932). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-27T00:23:04Z. --- Independent Windows x64 release A/B at `20019d8` versus parent `2e01ab4` on Ryzen 7 5700X3D. Only the Cargo profile differs. The unmodified `victory translate --jobs 1` processed 4,000 distinct synthetic packed compute programs in each run; both emitted all 4,000, 24,000 IR instructions, and byte-identical CLI summaries. Six alternating fresh-process samples per profile after one warm-up each gave parent median 0.518 s (range 0.504–0.671) and candidate 0.522 s (0.483–0.672), so this short single-kernel-family workload showed no clear throughput difference. The PE shrank from 9,939,968 to 9,678,848 bytes (2.6%). This is not a general translation or frame-time claim. Verification was AI-assisted with GPT-6.2 Astra.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/17:upstream-pr/17'
git switch 'upstream-pr/17'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/17'
git switch 'upstream-pr/17'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/17'
git switch 'upstream-pr/17'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/17'
git switch 'main'
git merge --squash 'upstream-pr/17'
git switch 'main'
git merge --ff-only 'upstream-pr/17'
git switch 'main'
git merge 'upstream-pr/17'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
DexNom/VIctory!17
No description provided.