Avoid rescanning covered write-watch ranges #83

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

@⁠TaynanGT on GitHub · 2026-11-26 23:00 UTC · original
TaynanGT:perf/watch-ask-rest → main · +74 −56 · 2 files · 1 commits · merged 2026-11-27 02:28 UTC

Reuse a submission’s standing write-watch query before collecting batch ranges. The range index also covers individual queries selected during the same pass. Coverage still requires one queried range, and kernel queries keep their original order.

On Windows, cargo check, Clippy and 55 focused tests passed. In 12 alternating pairs of the synthetic refresh test, the medians were 23.94 ms on the base and 23.88 ms on this branch, with a median paired difference of −0.19 ms. A comparable gameplay run is pending.

**@⁠TaynanGT** on GitHub · 2026-11-26 23:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/83) `TaynanGT:perf/watch-ask-rest` → `main` · +74 −56 · 2 files · 1 commits · merged 2026-11-27 02:28 UTC Reuse a submission’s standing write-watch query before collecting batch ranges. The range index also covers individual queries selected during the same pass. Coverage still requires one queried range, and kernel queries keep their original order. On Windows, `cargo check`, Clippy and 55 focused tests passed. In 12 alternating pairs of the synthetic refresh test, the medians were 23.94 ms on the base and 23.88 ms on this branch, with a median paired difference of −0.19 ms. A comparable gameplay run is pending.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:41:43 +00:00
Author
Owner

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

Gameplay run for #83 (as part of a combined merge)

This PR notes "a comparable gameplay run is pending", so: I merged #83 + #85 + #91 locally and ran a real session.

Machine: RTX 4070 12 GB, i7-14700F, 31.8 GB RAM, Windows 11 26200.
Config: -Console series-s -Machine 4070 -More @{ VICTORY_WAVE_WIDE='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6' }

23eeb84 + #83 #85 #91
frame 41.4 ms 40.6 ms
SUB 36.2 ms 35.3 ms
dropped draws 247 84
device removals 0 0

The SUB delta of −0.9 ms is at the same order as scene-to-scene variance, so I would not attribute it to any single PR of the three; the dropped-draw reduction (247 → 84) was the clearer effect. Details and a rebase note (the #91-on-top-of-#83 conflict in watch.rs) are in my comment on #85/#91.

Still short of 30 fps in heavy scenes: SUB ≈ 35 ms versus the 33.3 ms budget, at ~3,400 draws.

**@⁠HabibUrRehmanBhattii** on GitHub · 2026-11-27 00:55 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/83#issuecomment-7206862293) ## Gameplay run for #83 (as part of a combined merge) This PR notes "a comparable gameplay run is pending", so: I merged #83 + #85 + #91 locally and ran a real session. **Machine:** RTX 4070 12 GB, i7-14700F, 31.8 GB RAM, Windows 11 26200. **Config:** `-Console series-s -Machine 4070 -More @{ VICTORY_WAVE_WIDE='1'; VICTORY_OUTPUT='1280x720'; VICTORY_UPSCALER='6' }` | | `23eeb84` | + #83 #85 #91 | |---|---|---| | frame | 41.4 ms | 40.6 ms | | SUB | 36.2 ms | 35.3 ms | | dropped draws | 247 | 84 | | device removals | 0 | 0 | The `SUB` delta of −0.9 ms is at the same order as scene-to-scene variance, so I would not attribute it to any single PR of the three; the dropped-draw reduction (247 → 84) was the clearer effect. Details and a rebase note (the #91-on-top-of-#83 conflict in `watch.rs`) are in my comment on #85/#91. Still short of 30 fps in heavy scenes: `SUB ≈ 35 ms` versus the 33.3 ms budget, at ~3,400 draws.
Author
Owner

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

@⁠HabibUrRehmanBhattii Thanks for testing the three drafts together and documenting the merge conflict. I’ll keep the 247 → 84 dropped-draw result with the combined build. In the same run, frame time was 41.4 → 40.6 ms and submission time was 36.2 → 35.3 ms. The 12 paired synthetic tests here were nearly flat, so an isolated run of #83 on the same scene is still needed to assign a gameplay effect to this change.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:29 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/83#issuecomment-7207323282) @⁠HabibUrRehmanBhattii Thanks for testing the three drafts together and documenting the merge conflict. I’ll keep the 247 → 84 dropped-draw result with the combined build. In the same run, frame time was 41.4 → 40.6 ms and submission time was 36.2 → 35.3 ms. The 12 paired synthetic tests here were nearly flat, so an isolated run of #83 on the same scene is still needed to assign a gameplay effect to this change.
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.