Build: thin LTO for release and diag builds #677
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!677
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-677"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wbkepler on GitHub · 2026-11-24 06:41 UTC · original
wbkepler:build/release-tuning-and-config→main· +4 −0 · 1 files · 1 commits · openSummary
Enables
lto = "thin"in rootCargo.toml[profile.release](inherited by[profile.diag]) so hot cross-crate calls between the shader translator, host GPU layer, and runtime can inline without the link-time cost of fat LTO.Verification
cargo build --release -p victory— passedcargo clippy --workspace --all-targets— passedcargo clippy -p victory --features diagnostics --all-targets— passedcargo test --workspace— passedcargo xtask policy— passed (151 files ok)@ErRusso on GitHub · 2026-11-24 11:19 UTC · original
Audit: ✅ Looks good
Reviewed this PR as part of an audit of mergeable PRs.
Cargo.toml[profile.release](+4/-0). Addslto = "thin"with a clear comment about cross-crate inlining (translator, host GPU layer, runtime) at far less build time than fat LTO. Thediagprofile inherits it viainherits = "release".Correct and low-risk. The profile directive is inert on platforms/compilers that don't support it (falls back gracefully), and the CI already uses
--locked.No issues found.
@Marvisak on GitHub · 2026-11-25 01:24 UTC · original
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. The change adds
lto = "thin"to[profile.release]in the rootCargo.toml, and[profile.diag]inherits it. Triage does not pass build-configuration changes inCargo.toml(anything beyond feature flags) on its own, so this one waits for the maintainer.To support it, please add numbers to the PR:
victory translatewall time on a fixed set of containers, or frame times in-game.The comment says the crates "call each other in hot paths", but the PR shows no measurement. Without one, the cost (longer link times for every release and
diagbuild) has no shown benefit to weigh against.CI: not run on this head.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.