mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
TOTK_SYNC_AHEAD=check measures what a one-frame-late frame wait without shadow storage would race, with the wait left exact
The replay notes each GPU-timeline access of guest memory with its submission's value (in-place bindings of imported pools without a mirror, mirror sync copies, GPU deswizzle sources, mirror write-backs); at the frame wait the notes of the frame the late wait would leave running form its read set, snapped with the write watch and checked again at the next frame-wait entry. Invalidates and small-target write-backs of GPU results from that frame count as stale readbacks. One summary line per second and a run summary with the largest offenders by pool (runtime/vk_ahead.c). --probe-vkmem checks the detector with a synthetic write after the wait; tests/sync_ahead_check.py checks that check mode keeps the wait exact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0aa6f15dc
commit
1ab3856fdd
15 files changed
+752
-27
No files matched your search
+1
-1
@@ -295,7 +295,7 @@ static void start(void) {
|
||||
}
|
||||
g.win_fmt = VK_FORMAT_R8G8B8A8_UNORM;
|
||||
g.workers = cfg_int("TOTK_REPLAY_WORKERS");
|
||||
g.sync_ahead = cfg_bool("TOTK_SYNC_AHEAD");
|
||||
g.sync_ahead = cfg_bool("TOTK_SYNC_AHEAD") && strcmp(cfg_value("TOTK_SYNC_AHEAD"), "check") != 0; // check: exact
|
||||
g.hdr = vk_hdr_wanted();
|
||||
g.test = knob_int("TOTK_FG_TEST");
|
||||
g.debug = knob_int("TOTK_FG_DEBUG");
|
||||
|
||||
Reference in new issue
Block a user