Fix BC7 reference oracle dictionary index ordering #3263
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3263
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3263"
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?
@edge2labs on GitHub · 2026-11-29 21:08 UTC · original
edge2labs:edge2labs/fix-bc7-oracle→main· +29 −3 · 1 files · 1 commits · closed without mergingSummary
Synchronize the BC7 reference oracle with the production decoder following commit
f9de61c5.The reference implementation was still skipping the word immediately after the index widths, causing three oracle parity tests to fail.
Changes
Validation
Performance impact
No direct runtime performance change. This fix restores the reliability of the regression tests required to validate future BCPack performance optimizations.
Known upstream issues
The baseline commit
f72cec77has unrelated workspace Clippy and repository-wide asset policy failures.Tested on Windows with Rust 1.98.1.
Contribution by Edge2Labs.
@edge2labs on GitHub · 2026-11-30 00:14 UTC · original
I've completed an integrated performance contribution under Edge2Labs, consisting of seven commits rebased onto v2026.11.29.05 (
41adb551).The synthetic benchmarks on my i9-14900K, RTX 4080 SUPER and 64 GB RAM produced the following results:
Both Release and Diagnostics builds succeeded. The two higher-risk runtime optimizations remain opt-in.
I also compared the contribution against an unchanged upstream checkout. Several existing test failures and Clippy errors are reproducible upstream, while some GPU tests appear sensitive to concurrent execution.
One remaining concern before submission:
cargo xtask policyreports an existing violation incrates/victory-loader/src/heap_sites/frame_users.rson both upstream and our branch. None of our changes touch this file. Could you clarify how you would like contributors to proceed?I'd like to submit the integrated contribution for review under the pr-performance label and, if possible, have it benchmarked in-game against upstream, particularly without frame generation.
My main objective is to help achieve stable native 60 FPS or higher. I have not yet measured actual in-game FPS, so the reported improvements are strictly synthetic benchmark results.
github-bot referenced this pull request2026-11-30 05:13:30 +00:00
github-bot referenced this pull request2026-11-30 05:13:30 +00:00
@RochDawid on GitHub · 2026-12-01 01:32 UTC · original
mainalready has this change.be0ba3b7("bcpack: the BC7 oracle reads the dictionary as Microsoft's decoder does") makes the same edit toRefTables::parse: no skipped word after the widths, and all 32 index slots read. It reachedmainwith the merge of #2565 (ac6b767d, 2026-11-29) and is in every release since v2026.11.30.01.On
mainatf5c3d243,cargo test --locked -p victory-formats --lib oracle_paritygives 4 passed, 0 failed (oracle_parity_all_bc7_modes_rotations_subsets,oracle_parity_errors_and_noise,oracle_parity_all_formats_and_strip_boundaries,oracle_parity_all_bc6_modes). I ran it on a macOS host with Rust 1.98.1, not on Windows.This pull request now conflicts with
main. The only partmainlacks is the newbc7_oracle_dictionary_word_ordertest; the oracle change itself is already there. #2236, #2419 and #3263 all make this same change.Pull request closed