mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-16 18:09:58 -04:00
NVIDIA 621.01 reuses a pipeline-cache.bin entry only in the executable that wrote it, so every renamed or updated exe compiled all of its pipelines again (23 s boots, 17 % read from a 470 MB file). With NX2NAVI_PIPE_BINARIES=1, where the driver has VK_KHR_pipeline_binary, every pipeline, stage library and compute pipeline is looked up by its driver pipeline key in pipeline-binaries.bin and made from the stored binaries; anything not stored is compiled once with its data captured and appended. Each binary is stored once under its own key: nearly every graphics pipeline carries the same 2 MiB binary, which made a first version of the file 7 GB. pipeline-cache.bin is not used while this is on. The knob is off by default while it is being tested; NX2NAVI_PIPE_BINARIES_MAX_MB caps the file. NX2NAVI_ONESHOT_WAIT_MS sets how long a draw into a target the previous frame did not render waits for a pipeline built for the first time before it is skipped; the default keeps the old 30 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 KiB
36 KiB