Repository navigation
formats: share immutable texture swizzle tables (re-port #13 perf part) - #42
Merged
Merged
Conversation
The swizzle/de-swizzle lookup tables for tiled texture layouts are pure functions of the tile geometry: build them once per shape in a shared cache instead of per texture. Re-ported onto the fxceless base; the GPU- side parts of the old performance wave (scratch chunks, pipeline library sharding, unaligned SRV copies) conflict with the fxceless host/pipeline architecture and stay out. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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.
Re-port of the victory-formats part of the old performance wave (#13) onto the fxceless base.
The swizzle/de-swizzle lookup tables for tiled texture layouts are pure functions of the tile geometry; they are now built once per shape in a shared cache instead of per texture. Includes the
texture_layout_benchexample from the original branch.Not ported from #13 (documented deferrals, conflict with the fxceless architecture): scratch-chunk reuse in gpu host.rs (fxceless's relay/inplace copy machinery owns that area), pipeline-library sharding (fxceless reworked the library around a different save/load structure), unaligned-SRV aligned copies in draw.rs (insertion point restructured by the texture mirror/tabled logic).
Validation:
cargo test -p victory-formats25/25, clippy-D warningsclean.Written by Devin
Open in Devin Desktop: https://app.devin.ai/desktop/session/39a24dfe2c184165b42b2108a96286b6?variant=devin
Requested by: @Personed
🟢 Devin Review found nothing to fix · View findings · Follow Devin's work