GPU: optional parallel detiling of large 2D subresources #271

Open
github-bot wants to merge 1 commit from github-bot/gh-271 into main AGit
Owner

@⁠fffluffy-dev on GitHub · 2026-11-24 23:06 UTC · original
fffluffy-dev:gpu/parallel-detile → main · +136 −10 · 4 files · 1 commits · open

VICTORY_TEXTURE_DETILE_WORKERS=2..4 (off by default) splits tiled 2D subresources of 4 MiB or more into row bands on scoped threads; output is byte-identical (odd mips, array slices, the last unpadded row; new test parallel_detile_preserves_odd_mips_and_the_last_unpadded_row). Synthetic CPU timings: 16 MiB BC7 1.45 → 0.40 ms, RGBA8 2.19 → 0.53 ms, 64 MiB RGBA8 9.28 → 6.21 ms. Detile time is reported on the texture refresh line.

Validation (cargo-xwin, x86_64-pc-windows-msvc, tests under Wine): victory-gpu 111 passed, 1 ignored; victory-formats 24-25 passed; cargo clippy --workspace --all-targets -D warnings clean with and without --all-features; cargo xtask policy ok. Not measured on a real frame.

AI use: written with Codex and Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.

**@⁠fffluffy-dev** on GitHub · 2026-11-24 23:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/271) `fffluffy-dev:gpu/parallel-detile` → `main` · +136 −10 · 4 files · 1 commits · open `VICTORY_TEXTURE_DETILE_WORKERS=2..4` (off by default) splits tiled 2D subresources of 4 MiB or more into row bands on scoped threads; output is byte-identical (odd mips, array slices, the last unpadded row; new test `parallel_detile_preserves_odd_mips_and_the_last_unpadded_row`). Synthetic CPU timings: 16 MiB BC7 1.45 → 0.40 ms, RGBA8 2.19 → 0.53 ms, 64 MiB RGBA8 9.28 → 6.21 ms. Detile time is reported on the texture refresh line. Validation (cargo-xwin, x86_64-pc-windows-msvc, tests under Wine): victory-gpu 111 passed, 1 ignored; victory-formats 24-25 passed; `cargo clippy --workspace --all-targets -D warnings` clean with and without `--all-features`; `cargo xtask policy` ok. Not measured on a real frame. **AI use:** written with Codex and Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:39:35 +00:00
Author
Owner

@⁠kaayzouee on GitHub · 2026-11-25 01:23 UTC · original

Duplicate of #92?

**@⁠kaayzouee** on GitHub · 2026-11-25 01:23 UTC · [original](https://github.com/fxceless/victory-fork/pull/271#issuecomment-7149501460) Duplicate of #92?
This pull request has changes conflicting with the target branch.
  • crates/victory-formats/src/texture.rs
  • crates/victory-gpu/src/texture.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/271/head:github-bot/gh-271'
git switch 'github-bot/gh-271'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-271'
git switch 'github-bot/gh-271'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-271'
git switch 'github-bot/gh-271'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-271'
git switch 'main'
git merge --squash 'github-bot/gh-271'
git switch 'main'
git merge --ff-only 'github-bot/gh-271'
git switch 'main'
git merge 'github-bot/gh-271'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.