mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 23:49:56 -04:00
Refresh read-back ranges in the VRAM mirror, guard the boot pipeline prebuild against driver crashes and count out-of-order event waits.
Small ranges the game invalidates and reads back (the exposure meter) are copied from guest memory into the mirror at every submission that uses their pool, so a CPU write made between recording and the GPU's run is not lost; NX2NAVI_READBACK_SYNC=0 turns it off. While the boot builds the recorded pipelines a marker file exists next to the pipeline cache. A start that finds it left over records the GPU and driver in pipeline-prewarm-skip.txt, and starts on them build those pipelines at their first draw instead. CommandBufferWaitEvent is now recorded as OP_WAIT_EVENT. The replay waits for nothing but counts the waits it reaches before their signal, and how many submissions later that signal comes, in the NX2NAVI_TRACE=gfx frame line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -587,6 +587,9 @@ int vk_pipeline_async_on(void); // 1 after vk_pipeline_async_enable: graphics
|
||||
// cached under the current translator from their stored inputs, and builds every recorded pipeline, on all cores.
|
||||
// No-op without vk_pipeline_async_enable, with NX2NAVI_PIPE_PREBUILD=0 or with NX2NAVI_GPU=null.
|
||||
void vk_pipeline_prewarm(void);
|
||||
// Ends the boot prebuild's crash marker (vk_pipeline.c, "boot prebuild crash marker"): boot_wait calls it when it lets
|
||||
// the game start while the prewarm goes on, so a crash in play is not taken for one in the boot's builds.
|
||||
void vk_pipeline_prewarm_marker_clear(void);
|
||||
typedef struct {
|
||||
int phase; // 0 starting (device, key file), 1 shaders, 2 pipelines, 3 done
|
||||
int64_t sh_done, sh_total, sh_translated; // gfx_shader_prewarm_progress
|
||||
|
||||
Reference in New Issue
Block a user