From bc579c62e8470235281def23e605cab525586ebb Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Wed, 18 Nov 2026 18:55:12 +0300 Subject: [PATCH] The qstamp patch set is switched off when sync_ahead is refused, so TOTK_SYNC_AHEAD=1 without shadow storage leaves the game's depth query check as it was Co-Authored-By: Claude Opus 5.5 --- runtime/nvn_api_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/nvn_api_core.c b/runtime/nvn_api_core.c index e61df50d..96c65e2b 100644 --- a/runtime/nvn_api_core.c +++ b/runtime/nvn_api_core.c @@ -511,6 +511,9 @@ static int sync_ahead(void) { "GPU as before"); on = 0; } + // The depth query patch (set qstamp, patches-v143.txt) is switched by TOTK_SYNC_AHEAD too: a refused switch + // leaves the game's own frame number check, as with the switch off. + if (!on) rt_patch_switch(rt_patch_set("qstamp"), 0); if (on) rt_log("nvn: TOTK_SYNC_AHEAD: a wait for the frame presented last waits for the frame before it"); } return on;