perf(gpu): plan dependent GPU fills behind placed copies and keep placed-page write-watch stamps #295

Open
wike1701 wants to merge 2 commits from upstream-pr/295 into main
wike1701 commented 2026-11-27 20:48:47 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wike1701 on 2026-11-27T20:48:47Z.


Summary

Ports two GPU coherence & flight-wait reduction fixes from TaynanGT/Vice-Tay (GPL-3.0):

  1. Remember write-watch stamps for placed GPU pages (Vice-Tay@a33271f, PR #342):
    • crates/victory-gpu/src/memory.rs: records the write-watch stamp taken before uploading a newly placed page (VICTORY_PLACE_TAKEN=0 to disable), so later refreshes only pick up newer title writes and preserve GPU updates in between.
  2. Plan dependent GPU fills behind placed copies (Vice-Tay@10675b5, PR #344):
    • crates/victory-gpu/src/host/card_steps.rs, redirect_stats.rs, host/place.rs, inplace.rs, host.rs: redirects dependent constant fills reading the destination of an in-flight placed copy directly on the GPU using the placed copy's recorded backing, avoiding CPU flight waits (fill of upload memory settles) in heavy open-world scenes while preserving alias safety (inplace::has_alias).

Verification

  • cargo test -p victory-gpu --lib -- host::card_steps:: memory:: inplace::: 27 passed, 0 failed, 1 ignored
  • cargo check -p victory-gpu --features diagnostics: ok (0 new warnings)
  • cargo xtask policy: asset policy: 288 files ok
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5532909518 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/295). Originally posted by [wike1701](https://github.com/wike1701) on 2026-11-27T20:48:47Z. --- ## Summary Ports two GPU coherence & flight-wait reduction fixes from `TaynanGT/Vice-Tay` (GPL-3.0): 1. **Remember write-watch stamps for placed GPU pages** ([`Vice-Tay@a33271f`](https://github.com/TaynanGT/Vice-Tay/commit/a33271f), PR #342): - `crates/victory-gpu/src/memory.rs`: records the write-watch stamp taken before uploading a newly placed page (`VICTORY_PLACE_TAKEN=0` to disable), so later refreshes only pick up newer title writes and preserve GPU updates in between. 2. **Plan dependent GPU fills behind placed copies** ([`Vice-Tay@10675b5`](https://github.com/TaynanGT/Vice-Tay/commit/10675b5), PR #344): - `crates/victory-gpu/src/host/card_steps.rs`, `redirect_stats.rs`, `host/place.rs`, `inplace.rs`, `host.rs`: redirects dependent constant fills reading the destination of an in-flight placed copy directly on the GPU using the placed copy's recorded backing, avoiding CPU flight waits (`fill of upload memory` settles) in heavy open-world scenes while preserving alias safety (`inplace::has_alias`). ## Verification - `cargo test -p victory-gpu --lib -- host::card_steps:: memory:: inplace::`: **27 passed, 0 failed, 1 ignored** - `cargo check -p victory-gpu --features diagnostics`: **ok** (0 new warnings) - `cargo xtask policy`: **asset policy: 288 files ok**
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/295:upstream-pr/295'
git switch 'upstream-pr/295'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/295'
git switch 'upstream-pr/295'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/295'
git switch 'upstream-pr/295'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/295'
git switch 'main'
git merge --squash 'upstream-pr/295'
git switch 'main'
git merge --ff-only 'upstream-pr/295'
git switch 'main'
git merge 'upstream-pr/295'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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