Reduce CPU work in XOR texture copies and GPU write tracking #3998

Closed
github-bot wants to merge 1 commit from github-bot/gh-3998 into main AGit
Owner

@⁠temal32 on GitHub · 2026-11-30 14:06 UTC · original
temal32:perf/rust-memory → main · +129 −34 · 4 files · 1 commits · closed without merging

What it changes

Reuse column offsets across texture rows and copy contiguous 16-byte runs directly. Merge GPU write ranges in place and insert individual writes into the sorted list.

How it was tested

Synthetic Series S layouts on a Linux laptop (Ryzen 5 7430U). Median of eight runs. In-game FPS remains unmeasured.

  • 256x256 R32 tiling took 444 us on main, 27 us here and 29 us with the texture change from #3524.
  • 1920x1080 tiling took 12.99 ms on main, 1.50 ms here and 1.13 ms with the texture change from #3524.
  • All 35 texture tests passed. Three BCPack tests also fail on main. The Windows MSVC cargo check passed for the CLI and GPU crate. Strict Clippy and the asset-policy check report existing findings.

Checked for overlap

  • Compared the texture changes in #2543 and #3524. Related GPU range work is in #2665, #2812, #2647 and #3958. I would welcome feedback on whether the single-write insertion should be split out.
**@⁠temal32** on GitHub · 2026-11-30 14:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3998) `temal32:perf/rust-memory` → `main` · +129 −34 · 4 files · 1 commits · closed without merging ## What it changes Reuse column offsets across texture rows and copy contiguous 16-byte runs directly. Merge GPU write ranges in place and insert individual writes into the sorted list. ## How it was tested Synthetic Series S layouts on a Linux laptop (Ryzen 5 7430U). Median of eight runs. In-game FPS remains unmeasured. - 256x256 R32 tiling took 444 us on main, 27 us here and 29 us with the texture change from #3524. - 1920x1080 tiling took 12.99 ms on main, 1.50 ms here and 1.13 ms with the texture change from #3524. - All 35 texture tests passed. Three BCPack tests also fail on main. The Windows MSVC cargo check passed for the CLI and GPU crate. Strict Clippy and the asset-policy check report existing findings. ## Checked for overlap - [x] Compared the texture changes in #2543 and #3524. Related GPU range work is in #2665, #2812, #2647 and #3958. I would welcome feedback on whether the single-write insertion should be split out.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 14:08:28 +00:00
Author
Owner

@⁠dyshay on GitHub · 2026-11-30 14:53 UTC · original

Merged for testing into our integration branch dyshay/VIctory-NVIDIA janus-prs (the insert_range part only; our tree already walks texture tiles per axis). Builds and the targeted CPU tests pass; a run on an RTX 4090 (Series S, hardware RT) is queued and I'll post the result here.

**@⁠dyshay** on GitHub · 2026-11-30 14:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3998#issuecomment-7282100651) Merged for testing into our integration branch [dyshay/VIctory-NVIDIA `janus-prs`](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs) (the `insert_range` part only; our tree already walks texture tiles per axis). Builds and the targeted CPU tests pass; a run on an RTX 4090 (Series S, hardware RT) is queued and I'll post the result here.
github-bot closed this pull request 2026-12-01 18:50:51 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:47 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3998#issuecomment-7321544232) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3998
No description provided.