Avoid rescanning covered write-watch ranges #83

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

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


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5518296168 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/83). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T23:00:25Z. --- 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.
HabibUrRehmanBhattii commented 2026-11-27 00:55:17 +00:00 (Migrated from github.com)

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


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7206862293 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/83#issuecomment-7206862293). Originally posted by [HabibUrRehmanBhattii](https://github.com/HabibUrRehmanBhattii) on 2026-11-27T00:55:17Z. --- ## 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.
TaynanGT commented 2026-11-27 01:29:01 +00:00 (Migrated from github.com)

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


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7207323282 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/83#issuecomment-7207323282). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:29:01Z. --- @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.
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!83
No description provided.