Fix BC7 reference oracle dictionary index ordering #3263
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by edge2labs on 2026-11-29T21:08:31Z.
Summary
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by edge2labs on 2026-11-30T00:14:26Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RochDawid on 2026-12-01T01:32:34Z.
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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.