mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 22:15:57 +00:00
With sync_ahead, a timestamp the frame wait did not cover reads as the newest one written at that wait, so the dynamic resolution controller never reads a wrapped GPU time (#1123)
The game converts the end and then the begin report of a pair and subtracts them unsigned. With the frame wait one frame late the end could be unwritten (0) or hold the value of the report before it, and the difference wrapped to about 2^64: an over-budget frame for the controller, two in a row drop the game to its lowest quality level. Reads of a report that holds 0, a time after the bound, or whose newest replayed report is not done read the bound instead, so a pair in submission order never reads end < begin. Guest memory, RENDER_COND and samples-passed counts are unchanged. TOTK_SYNC_AHEAD_TIMESTAMPS=0 turns it off, =check counts without replacing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ed8fa04034
commit
47eb44d1b2
5 files changed
+107
-5
No files matched your search
@@ -480,6 +480,7 @@ void gfx_exit_log(void) {
|
||||
vk_mem_shadow_read_log();
|
||||
vk_ahead_log_final();
|
||||
vk_ahead_log_guards();
|
||||
vk_counter_log();
|
||||
if (gfx_replay_async() && r_started && !plat_xchg32(&done, 1)) replay_log(game_frames, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user