Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
RicerBoy
added a commit
to RicerBoy/DropItLikeItsHot
that referenced
this pull request
Nov 24, 2026
…ies with fixed-size chunks Part of #16 # Conflicts: # crates/victory-formats/src/texture.rs
RecompLive
pushed a commit
to RecompLive/victory-fork
that referenced
this pull request
Nov 25, 2026
…-last-error Kernel: a title image's file name that fits clears the last error
|
Tested on another NVIDIA card, picture checked against
One run only; the "walls missing in some launches" of (Runs and screenshots by me on the hardware above; comparison and this note written with Claude Code.) |
oceansde012
pushed a commit
to oceansde012/victory-gta6
that referenced
this pull request
Nov 25, 2026
…-last-error Kernel: a title image's file name that fits clears the last error (cherry picked from commit 95191f8)
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.
Summary
The GPU upload path calls
Layout::detileon the submitting thread when a sampled texture changes. The existing implementation specializes the width of 8-, 16-, and 32-byte copies, but still builds checked byte ranges for both sides of each copy.For aligned, equal-sized runs, slice the linear row once and copy through fixed-size byte arrays. Each copy then only needs to index the tiled side. Both copy directions use the same traversal and validation. Short final runs, irregular layouts, and linear copies use byte ranges.
The fixed-width copies already present in this fork specialize the copy length. This PR also removes the per-run linear slice checks. The related proposals split larger subresources into row bands (#92) and reduce time waiting for remaps (#175). The fixed-width changes in VIctory #603 and VIctory #1097 use byte slices for individual copies.
Measurements
Single-threaded, synthetic uploads on an Apple M1 Pro. The Windows x64 build used Rust 1.98.1 targeting
x86_64-pc-windows-gnuand ran under Wine 11.21 with Rosetta. Baseline is2119b0e. The before and after routines run in the same process, alternate batch order, and compare the entire output against each other before timing.A second Wine run reproduced the tiled detile savings within one percentage point. The reverse copy took 10–34% less time across the same tiled cases. The native arm64 macOS build took 9–34% less time across the ten tiled detile cases.
Windows x64 with MSVC
The same benchmark ran twice on a GitHub-hosted Windows VM (AMD EPYC 9V45, Rust 1.98.1,
x86_64-pc-windows-msvc). The ranges report the two process medians. Each run checked the full output byte-for-byte before timing. Benchmark logOn this runner the gains were concentrated in the smaller tiled cases. The larger cases generally moved by a few percent or less. Gameplay frame time remains unmeasured.
Validation
cargo test -p victory-formats --lockedpassed on macOS and for Windows x64 under Wine (25 passed, four ignored on each).blake3/pureto avoid needing MASM on macOS.cargo xtask policyandgit diff --checkpassed.AI-assisted implementation and verification.
Reproduce the synthetic detile benchmark
From the checkout, extract
crates/victory-formats/src/texture.rsfrom2119b0eintobase.rsand copy the changed file topatch.rsin a temporary directory. Save the program below beside them and compile withrustc +1.98.1 --edition 2024 -O -A dead_code bench.rs. For the Wine timings, add--target x86_64-pc-windows-gnu -C linker=x86_64-w64-mingw32-gccand run the resulting executable with Wine.