Repository navigation
Texture: reuse contiguous column runs across rows - #60
Merged
Merged
Conversation
|
Tested
AI-assisted (DeepSeek V4.1 Flash coding agent). |
Contributor
|
Verified
AI-assisted. |
suirentakamura
referenced
this pull request
in suirentakamura/victory-suiren
Nov 24, 2026
Texture: reuse contiguous column runs across rows
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.
Tiling and detiling used to calculate every element's address for each row and then scan that row for contiguous runs. Moving to a new row or depth slice adds a common base to the column addresses, so the same runs can be reused throughout a subresource. Linear textures now copy one row at a time.
The synthetic tests check each tiled element against its coordinate address and verify that row and depth padding retain their original bytes. They cover odd texture dimensions, block compression, mip tails, array slices and 3D textures.
On an i5-11600K, a local release-build comparison during the startup movie measured 14.8–15.7 ms per frame in texture preparation before the change and 3.1–3.4 ms afterward. Both runs played at 30 fps. This measurement used a local integration build with the compatibility changes needed by that machine.
Validation
cargo test --locked -p victory-formats --libpassed all 17 active tests. Three external-fixture tests were ignored.cargo check --locked --workspaceandcargo xtask policypassed.cargo test --locked --workspace --no-fail-fastreported two failures on Windows 10. The WinHTTP test requires a host export missing on this machine, andvictory-loader --test load_probeexited withSTATUS_ACCESS_VIOLATION(see Loader: preserve an empty import table for Windows 10 static TLS #28). The remaining test targets passed.Developed with AI assistance.