Track decoration bake coverage per descriptor heap #85

Merged
TaynanGT merged 1 commit from upstream-pr/85 into main 2026-11-27 02:28:06 +00:00
TaynanGT commented 2026-11-26 23:08:45 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-26T23:08:45Z.


Keep bake coverage with the texture queue that was scanned. Each pass can certify only the revision it observed. Slot rewrites, overlapping passes and truncated scans leave the queue due for another bake pass. The GPU path records coverage after the copy and descriptor publication.

On Windows, cargo check, Clippy and the victory-gpu library suite passed, with 469 tests passing and 41 ignored. A fresh-cache comparison of the opening world scene is pending for #44.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5518371986 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/85). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T23:08:45Z. --- Keep bake coverage with the texture queue that was scanned. Each pass can certify only the revision it observed. Slot rewrites, overlapping passes and truncated scans leave the queue due for another bake pass. The GPU path records coverage after the copy and descriptor publication. On Windows, `cargo check`, Clippy and the `victory-gpu` library suite passed, with 469 tests passing and 41 ignored. A fresh-cache comparison of the opening world scene is pending for #44.
HabibUrRehmanBhattii commented 2026-11-27 00:55:05 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by HabibUrRehmanBhattii on 2026-11-27T00:55:05Z.


Gameplay measurement (combined #83 + #85 + #91)

I merged all three open PRs locally and ran a real play session, since #85 and #91 both note "gameplay comparison pending". Sharing the numbers.

Test machine: RTX 4070 12 GB, Intel i7-14700F (20C/28T), 31.8 GB RAM, Windows 11 build 26200, NVIDIA driver 32.0.16.1692.

Build: branch off 23eeb84 with pr83 (755dc92), pr85 (7eef143) and pr91 (e11801e) merged on top.

Run config (scripts/play.ps1):
-Console series-s -Build diag -Windowed -Machine 4070 -More @{ VICTORY_WAVE_WIDE='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6' }

Comparison — same config, in-world view at ~3,400 draws, read from the in-game panel:

23eeb84 (before) + #83 #85 #91
fps 24 25
frame 41.4 ms 40.6 ms
SUB 36.2 ms 35.3 ms (−0.9 ms)
GPU est 21.5 ms 22.5 ms
dropped draws (DROP) 247 84
1% low 20 20
device removals / panics 0 0 (7.4 min session)

Two observations worth noting:

  1. The SUB improvement (−0.9 ms) is small and at the same order as run-to-run scene variance, so I would not claim it as proof on its own. The DROP 247 → 84 change is the larger and more consistent effect I saw, and that is a picture-quality win as well.
  2. In lighter views (~1,000–1,500 draws) the same build held 30 fps / 33.0–33.3 ms repeatedly. In heavy views (~3,400 draws) it sits at 24–25 fps, with SUB ≈ 35 ms against the 33.3 ms a 30 fps frame needs. So this work narrows the gap but the submission thread is still the wall in heavy scenes — consistent with what #18 on DexNom/VIctory reports.

Caveat: single machine, one run each, not a controlled A/B across matched scenes, and the three PRs were merged together so gains cannot be attributed per-PR.

Rebase note for #91: it does not apply on top of #83 as-is. Conflict in crates/victory-gpu/src/watch.rs:

  • #83 changed ask_ahead_held to take impl Iterator<Item = (usize, usize)>, while #91 passes ranges directly. Resolved as ask_ahead_held(ranges.iter().copied(), true).
  • #91 calls j.ahead.set(ahead) and j.ahead.is_empty(), but Ahead in this tree has neither. Resolved as j.ahead = ahead and j.kept = !ahead.ranges.is_empty(), keeping #91's j.ahead_mapping = mapping / j.kept_after_raw = false.

With those three fixes it builds clean (cargo build --profile diag -p victory --features diagnostics, exit 0) and runs without crashes.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7206859552 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/85#issuecomment-7206859552). Originally posted by [HabibUrRehmanBhattii](https://github.com/HabibUrRehmanBhattii) on 2026-11-27T00:55:05Z. --- ## Gameplay measurement (combined #83 + #85 + #91) I merged all three open PRs locally and ran a real play session, since #85 and #91 both note "gameplay comparison pending". Sharing the numbers. **Test machine:** RTX 4070 12 GB, Intel i7-14700F (20C/28T), 31.8 GB RAM, Windows 11 build 26200, NVIDIA driver 32.0.16.1692. **Build:** branch off `23eeb84` with `pr83` (755dc92), `pr85` (7eef143) and `pr91` (e11801e) merged on top. **Run config** (`scripts/play.ps1`): `-Console series-s -Build diag -Windowed -Machine 4070 -More @{ VICTORY_WAVE_WIDE='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6' }` **Comparison** — same config, in-world view at ~3,400 draws, read from the in-game panel: | | `23eeb84` (before) | + #83 #85 #91 | |---|---|---| | fps | 24 | 25 | | frame | 41.4 ms | **40.6 ms** | | SUB | 36.2 ms | **35.3 ms** (−0.9 ms) | | GPU est | 21.5 ms | 22.5 ms | | dropped draws (`DROP`) | **247** | **84** | | 1% low | 20 | 20 | | device removals / panics | 0 | **0** (7.4 min session) | **Two observations worth noting:** 1. The `SUB` improvement (−0.9 ms) is small and at the same order as run-to-run scene variance, so I would not claim it as proof on its own. The **`DROP` 247 → 84** change is the larger and more consistent effect I saw, and that is a picture-quality win as well. 2. In lighter views (~1,000–1,500 draws) the same build held **30 fps / 33.0–33.3 ms** repeatedly. In heavy views (~3,400 draws) it sits at 24–25 fps, with `SUB ≈ 35 ms` against the 33.3 ms a 30 fps frame needs. So this work narrows the gap but the submission thread is still the wall in heavy scenes — consistent with what #18 on DexNom/VIctory reports. **Caveat:** single machine, one run each, not a controlled A/B across matched scenes, and the three PRs were merged together so gains cannot be attributed per-PR. **Rebase note for #91:** it does not apply on top of #83 as-is. Conflict in `crates/victory-gpu/src/watch.rs`: - #83 changed `ask_ahead_held` to take `impl Iterator<Item = (usize, usize)>`, while #91 passes `ranges` directly. Resolved as `ask_ahead_held(ranges.iter().copied(), true)`. - #91 calls `j.ahead.set(ahead)` and `j.ahead.is_empty()`, but `Ahead` in this tree has neither. Resolved as `j.ahead = ahead` and `j.kept = !ahead.ranges.is_empty()`, keeping #91's `j.ahead_mapping = mapping` / `j.kept_after_raw = false`. With those three fixes it builds clean (`cargo build --profile diag -p victory --features diagnostics`, exit 0) and runs without crashes.
TaynanGT commented 2026-11-27 01:29:05 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:29:05Z.


@HabibUrRehmanBhattii Thanks for recording the hashes, settings and session duration. The combined run dropped 84 draws versus 247 on the baseline and had no device removal in 7.4 minutes. I’m tracking that alongside @Hailey-Ross’s isolated check in #44, where #85 still showed banding in one of two launches from the same starting cache. The coverage fix remains reviewable on its own. The combined numbers and the banding follow-up answer separate questions.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7207324333 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/85#issuecomment-7207324333). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:29:05Z. --- @HabibUrRehmanBhattii Thanks for recording the hashes, settings and session duration. The combined run dropped 84 draws versus 247 on the baseline and had no device removal in 7.4 minutes. I’m tracking that alongside @Hailey-Ross’s isolated check in #44, where #85 still showed banding in one of two launches from the same starting cache. The coverage fix remains reviewable on its own. The combined numbers and the banding follow-up answer separate questions.
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
TaynanGT/Vice-Tay!85
No description provided.