mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 08:39:57 -04:00
Let the game go on while the GPU runs the end of the last frame, with tail_early = 1.
The game waits each frame until the GPU has finished the frame before. In Hyrule Field with FSR 4 the last of that work is one part of 4.7 ms, the temporal upscaler and the interface drawn after it, then 1.4 ms of write-backs, and what the game reads of the frame is done before the upscaler runs. With NX2NAVI_TAIL_EARLY the replay records that tail into a command buffer of its own, and when it hands the CPU nothing but timestamps, writes no pool memory but inline uniform updates of mirrored blocks and reads no guest memory late, the write-backs go to the queue before it with the executed timeline's signal. The game's waits end there, and the GPU runs the tail while the next frame is prepared. The GPU's commands are the same; a tail that fails a test goes as before. Off by default. RX 7900 XT, Ryzen 7 5800X3D, 3440x1440, FSR 4 Native AA, one batch, replay workers off: 50.7 against 42.5 fps standing and 56.0 against 45.9 along the field route; with FSR 3.1, 51.8 against 47.8 and 54.9 against 52.3. With three replay workers, FSR 4, standing: 63.5 against 49.4. The screenshots matched those without it standing, along the route and through warps to five areas, with no black frame outside the loading screens of both. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -160,6 +160,10 @@ typedef struct {
|
||||
// As fence_wait, but only until the GPU has executed the submission's own commands: its write-backs to guest
|
||||
// memory and its fence's side effects may follow (vk_sync.c exec_tl). The same as fence_wait where there is no split.
|
||||
int (*exec_wait)(uint64_t value, uint64_t timeout_ns);
|
||||
// The game's own wait for a fence (nvnSyncWait): fence_wait, or where the back end knows the rest of the value's
|
||||
// GPU work reads nothing the game can change and hands it nothing, until its results are there (vk_sync.c
|
||||
// vk_sync_game_wait).
|
||||
int (*game_wait)(uint64_t value, uint64_t timeout_ns);
|
||||
uint64_t (*fence_done)(void); // highest value whose side effects are written
|
||||
// Queues the present and returns at once; the host present goes out at at_ns (kern_now_ns clock), at once when that
|
||||
// has passed or at_ns is 0.
|
||||
|
||||
Reference in New Issue
Block a user