Repository navigation
Share immutable texture address tables - #118
Open
andrewDoing wants to merge 1 commit into
Open
andrewDoing wants to merge 1 commit into
andrewDoing wants to merge 1 commit into
Conversation
|
Independent hardware-GPU Windows verification and diff review of Tested
Diff Review (
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Identical texture layouts currently rebuild immutable address tables, and cloning a layout copies the tables again. Lazily share tables by their bounded layout parameters, keeping the Series X and S render-XOR patterns separate.
10,080 layout combinations produced the same tables or invalid result as before. Cross-thread model isolation and all 12 texture tests passed. This branch merges cleanly with #109; the combined implementation matched upstream for 5,010 tile/detile layouts, including pitches and padding.
In synthetic 20,000-layout runs, standard 64 KiB layout construction fell from a 24.728 ms median to 1.498 ms and cloning from 3.249 ms to 0.762 ms. Cached table storage is bounded to 55 slots, at most approximately 44 KiB on Win64. These are CPU-only measurements; no gameplay frame-time claim.
Pinned Rust 1.98.1: both workspace Clippy configurations and asset policy passed; serial workspace tests: 684 passed, 0 failed, 12 ignored with CI's software-adapter setting.
GPT-6.2 Astra implemented and tested the change.
Related work: TG0000's shared swizzle tables independently shares standard swizzle patterns. This implementation was developed independently and also shares the model-specific render-XOR patterns.