Speed up bindless planning, BCPack decoding, and shader translation #119
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!119
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-119"
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?
@iWebbIO on GitHub · 2026-11-25 14:53 UTC · original
iWebbIO:perf/host-throughput→main· +3871 −794 · 11 files · 6 commits · openSummary
The bindless work targets the host preparation stalls reported in #20. The merge with
000ffddkeeps main's shared descriptor lock, direct-window death gate, plan diagnostics, andVICTORY_PLAN_REUSE=0comparison mode.Evidence against current main
Matched synthetic release workloads against
000ffdd, including its thin LTO and single codegen unit, on Windows 11 with an i5-13400F and RTX 5060 Ti.Bindless timings are the median of three runs with 25 samples each. The unit-test harness forces plan rebuilds on both revisions, so the timings characterize that path. The eviction scenario asserts that the stale view is dropped and the placed texture is rebuilt. BCPack used the shipped tables, 16,384 blocks per format, and 11 samples of 16 iterations. All six output digests matched. Shader translation used 11 samples of 16 iterations per workload across three interleaved pairs. All five DXIL sizes and digests matched.
Apply the same benchmark harness to the baseline revision for a before-and-after run.
Independent reports on the original PR head
05882250588225against01aadd1. Throughput rose from 73.4 to 147.3 MB/s for BC1, 74.7 to 144.3 MB/s for BC4, and 42.5 to 80.5 MB/s for BC7. The formats suite passed 28 tests with five ignored. Independent decoder reportLocal checks at merged head
d185dd3cargo check --workspace --all-features --all-targets --lockedpassed.cargo test --workspace --locked --no-fail-fastpassed 13 additional tests and reproduced the same 16 failures as000ffdd. The baseline failures cover descriptor allocation, xmem, shader validation, and the existing asset-policy size limit.Merge risk
The changes are reversible in Git and add no dependencies. Runtime impact is concentrated in submission-time descriptor tracking, texture decompression and shader translation. The GPU indexes use additional memory proportional to active slots, and the decoder reuses per-thread workspace.
Built with Cloudroom
000ffdd) into PR #119 d185dd3590@sil-kong on GitHub · 2026-11-25 15:08 UTC · original
Data point on Linux (Arch, RX 7900 XT with RADV, Ryzen 9 5900X, GE-Proton10-34's Wine + vkd3d-proton), Belobug main at
01aadd1+ #123, then + this PR (and #120), release build, same save and spot, 8 world frames: "bindless plans" went from ~26 ms to 3-9 ms a frame (3-5 ms once settled), and the frame from ~325 to ~290 ms. Rendering at that spot unchanged.@KernelSmoker on GitHub · 2026-11-25 18:12 UTC · original
Independent CPU decoder measurements on an i9-11900K, Bazzite 45, Rust 1.98.1 release, comparing the baseline cited in this PR (
01aadd1) with head0588225. I used the existing synthetic bcpack_throughput test, whose function body is identical in both revisions. Run order was base, head, head, base, base, head in one Fedora container. Medians of three runs per revision, in MB of output per second:The synthetic workload uses 16,384 blocks per format and 40 timed decodes per run. On this host the decoder throughput improved for all three formats. The victory-formats library tests at head also completed with 28 passed and 5 ignored. Gameplay FPS was outside this measurement.
@adrianmjim on GitHub · 2026-11-26 19:38 UTC · original
Full-corpus check of the shader-translation part, on the game's
shaders.rpf(RX 7900 XT, Windows 11 build 26300, Rust 1.98.1, release builds with the same profile, dxil.dll 10.0.26100.0). I compared headd185dd3withmainat000ffdd, its base, usingvictory translate --validate --list --host-lanes 32-64 --jobs 8and a local, uncommitted per-program DXIL hash:Output: all 25,623 emitted programs are byte for byte the same as on
main, in each of three runs, and every count is unchanged (VS/PS 14,247/14,247, CS 2,682/2,682, MS 8,694 of 8,765).Time: three interleaved pairs, wall clock for the whole archive with validation:
main: 142, 161 and 195 s;The medians are 161 s against 137 s, about 15 % less. Other jobs were running on the machine, so the spread is large, one PR run was slower than one
mainrun, and I would read this only as pointing the same way as the 30 % in the description. The full run also includes validation and archive reading, which this PR does not change.I did not run the unit tests, the bindless or BCPack parts, or the game.
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.