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
@@ -50,6 +50,11 @@ uint64_t nvn_new_serial(void); // next tex_t / prog_
|
||||
void nvn_sync_ahead_present(void);
|
||||
uint64_t nvn_sync_ahead_guard(void);
|
||||
int nvn_sync_ahead_on(void); // 1 when the frame-ahead wait is in effect: TOTK_SYNC_AHEAD=1 and a wait site known for this version
|
||||
// vk_exec_xfer.c, TOTK_SYNC_AHEAD: at the game's frame wait the newest timestamp written becomes the bound; the value
|
||||
// the game reads for the timestamp t of the report at addr (t, or the bound for a report its frame wait did not cover)
|
||||
void vk_counter_frame(void);
|
||||
uint64_t vk_counter_timestamp(uint64_t addr, uint64_t t);
|
||||
void vk_counter_log(void); // the run total, once (gfx_exit_log)
|
||||
int vk_mem_shadow_on(void); // vk_memory.c: 1 with shadow storage on (valid once the Vulkan back end is up)
|
||||
int vk_mem_mirror_on(void); // vk_memory.c: 1 when pools used as buffers get VRAM mirrors (memory = mirror or auto on a discrete GPU)
|
||||
void vk_mem_shadow_fence(void); // vk_memory.c: returns once every shadow sync that read the old guard is done
|
||||
|
||||
Reference in new issue
Block a user