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

Open
github-bot wants to merge 1 commit from github-bot/gh-17 into main AGit
Owner

@⁠Daayben on GitHub · 2026-11-25 18:38 UTC · original
Daayben:pr/thin-lto → main · +4 −0 · 1 files · 1 commits · open

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

**@⁠Daayben** on GitHub · 2026-11-25 18:38 UTC · [original](https://github.com/DexNom/VIctory/pull/17) `Daayben:pr/thin-lto` → `main` · +4 −0 · 1 files · 1 commits · open 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)
The port spends its time hashing, copying and translating, so cross-crate
inlining pays for the slower build. The diag profile inherits release and
builds slower too.

Ported from Key-rs (VIctory pull request #96, a23d1b4), as carried by
Belobug/VIctory-Belobug-AMD. Checked here: release build of victory,
victory-play and victory-warm with --features diagnostics, and
cargo test --release -p victory-gpu (188 passed) on an RTX 4090.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:49 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/17/head:github-bot/gh-17'
git switch 'github-bot/gh-17'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-17'
git switch 'github-bot/gh-17'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-17'
git switch 'github-bot/gh-17'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-17'
git switch 'main'
git merge --squash 'github-bot/gh-17'
git switch 'main'
git merge --ff-only 'github-bot/gh-17'
git switch 'main'
git merge 'github-bot/gh-17'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.