Build: thin LTO, x86-64-v3 on Windows, xxh3 for texture change detection #3011
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!3011
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3011"
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?
@0xkn0wh3r3 on GitHub · 2026-11-26 03:24 UTC · original
0xkn0wh3r3:build/lto-avx2-xxh3→main· +34 −5 · 5 files · 1 commits · openThree build-level changes for the CPU side, none of which changes behaviour.
Changes
diag, which inherits it).victory-gpu,victory-hleandvictory-shadercall each other on per-draw and per-page paths, and without LTO nothing inlines across those crate boundaries.codegen-unitsstays at its default to keep build times reasonable.target-cpu=x86-64-v3for the Windows target (.cargo/config.toml). The README already requires an AVX2 CPU, but the host code was built for baseline x86-64 (SSE2). x86-64-v3 is what every AVX2 CPU has: AVX2, BMI1/2, FMA, LZCNT, MOVBE. It's scoped tox86_64-pc-windows-msvc, so builds on other hosts are unaffected. Side effect: the AVX2 check inrun.rsbecomes always-true, so a CPU without AVX2 would crash instead of getting the message; such a CPU couldn't run the title anyway.texture.rs). Every sampled texture's memory is hashed at each refresh to see whether it changed; a comment there records 8 ms a frame for one case. That hash is never stored across runs, so a fast non-cryptographic 128-bit hash is enough. blake3 stays for the cache keys that are saved to disk. New dependency:xxhash-rust(BSL-1.0, pure Rust).Testing
cargo check --workspace --all-targets --target x86_64-pc-windows-msvcpasses.victory-gpu's unit tests, cross-compiled in release with these flags and run under Wine: thetexturetests give the same results as on unmodifiedmain.8c4b2f772ctoa48fb0a63b@futurepro62 on GitHub · 2026-11-26 03:53 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
8c4b2f7(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
@Marvisak on GitHub · 2026-11-26 06:17 UTC · original · edited 2026-11-26 07:19 UTC
Automated triage for the maintainers.
Thanks for the plan. The head is unchanged, so the verdict stays needs work; needs the maintainer's decision (new dependency,
.cargo/config.toml, LTO). The split you describe, with numbers for the hash swap and the AVX2 message kept reachable, would let each piece be judged on its own.Generated by Claude Code
@0xkn0wh3r3 on GitHub · 2026-11-26 06:43 UTC · original
Agreed on all four points. Next steps:
x86-64-v3for the whole binary makes therun.rscheck unreachable, and a CPU without AVX2 crashes with an illegal instruction instead of getting the message. The CPU-target PR will either drop the global flag or keep the check in code built for baseline x86-64, so the message still appears. Otherwise I'll leave that change out.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.