Preserve valid write-watch queries across raw title copies #91
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!91
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-91"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-26 23:40 UTC · original
TaynanGT:perf/preserve-raw-copy-watch→main· +257 −44 · 5 files · 1 commits · merged 2026-11-27 02:28 UTCRecord raw title copies with their address spans. A covered destination can reuse the submission’s query after a bounded, non-resetting
GetWriteWatchprobe confirms the current reservation. Mapping revisions include private releases and decommits, and a later change makes the extended query stale. The copy stays in its original batch order and handles overlapping spans.Windows app check and Clippy passed. The
victory-gpusuite passed 469 tests, including decommit and recommit at the same address. The memory HLE suite passed 18 tests. In an isolated raw-copy test followed by 16 refresh queries, the medians were 11.10 µs when reasking and 2.10 µs when reusing the query. A gameplay comparison is pending.@akimfomin on GitHub · 2026-11-27 00:14 UTC · original
PortBridge checked #91 at
e11801e6against Vice-Tay maincc9ed86: clean Git merge across the five touched files. Your synthetic reservation control already exercises decommit/recommit at the same address. That test should travel with any downstream port even when the Git merge is clean.If you'd like to try the check before another Vice-Tay import, PortBridge #98 takes one public PR URL and exact receiving SHA. A colleague can run the CLI from the same link and return the exact tree plus the first failed or passed control. I checked Git/source here and did not run the GPU suite or a title. AI-assisted compatibility check.
@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
23eeb84withpr83(755dc92),pr85(7eef143) andpr91(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)DROP)Two observations worth noting:
SUBimprovement (−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. TheDROP247 → 84 change is the larger and more consistent effect I saw, and that is a picture-quality win as well.SUB ≈ 35 msagainst 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:ask_ahead_heldto takeimpl Iterator<Item = (usize, usize)>, while #91 passesrangesdirectly. Resolved asask_ahead_held(ranges.iter().copied(), true).j.ahead.set(ahead)andj.ahead.is_empty(), butAheadin this tree has neither. Resolved asj.ahead = aheadandj.kept = !ahead.ranges.is_empty(), keeping #91'sj.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.@akimfomin on GitHub · 2026-11-27 01:01 UTC · original
Your combined run supplies something our merge-only check couldn't: the #83/#91 integration needed manual changes in
watch.rs, and the resulting build ran on an RTX 4070. I've kept the combined observation separate from the effect of any one PR. The large change in dropped draws is useful, while the small frame-time difference and unmatched views still leave attribution open.If you already have the final integration SHA or public comparison snippet, PortBridge's intake can record it alongside the exact receiving revision and link your report. Your agent can use that on the next comparison without uploading a log. No repeat title run is needed to return the existing result.
@TaynanGT on GitHub · 2026-11-27 01:30 UTC · original
@HabibUrRehmanBhattii Thanks for the merge notes and for running the combined build on your 4070. I reproduced the
watch.rsconflict by combining #83, #85 and #91 oncc9ed86. The resolved tree kept the iterator from #83 and the mapping revision from #91 in both journal paths. The negative-control test also needed to constructAheadwithfrom_ranges. On Windows, 33 focused GPU tests and 18 HLE memory tests passed, including the decommit/recommit check. Two benchmarks were skipped. @akimfomin, your standalone merge check and the combined result are consistent. The gameplay numbers remain with the combined build, and the reservation test should travel with any port of #91.