Track decoration bake coverage per descriptor heap #85

Manually merged
github merged 1 commit from github-bot/gh-85 into main 2026-11-27 02:43:07 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-26 23:08 UTC · original
TaynanGT:fix/bake-heap-coverage → main · +120 −45 · 2 files · 1 commits · merged 2026-11-27 02:28 UTC

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.

**@⁠TaynanGT** on GitHub · 2026-11-26 23:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/85) `TaynanGT:fix/bake-heap-coverage` → `main` · +120 −45 · 2 files · 1 commits · merged 2026-11-27 02:28 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:41:45 +00:00
Author
Owner

@⁠HabibUrRehmanBhattii on GitHub · 2026-11-27 00:55 UTC · original

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.

**@⁠HabibUrRehmanBhattii** on GitHub · 2026-11-27 00:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/85#issuecomment-7206859552) ## 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.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:29 UTC · original

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/85#issuecomment-7207324333) @⁠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.
github manually merged commit 30243d86d7 into main 2026-11-27 02:43:07 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.