mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 11:09:56 -04:00
pressure_release queued up to 256 released_destroy_cb callbacks at one timeline value every 5 s, and completion_main runs every callback at or below the reached value before it counts the value as done and wakes the waiters. The game's fence waits, the frame's first-submission wait and the acquire wait therefore sat behind up to 256 vkDestroyPipeline calls. The released entries now go on a list the autosave thread alone owns, each with the value the GPU must be past (a field of its own, rel_fence), and release_drain at the start of every autosave tick destroys at most 64 of those that are done, none after a device loss. 64 per 500 ms outpaces the 256 per 5 s a pass takes out. The callback is gone. Not reproduced before the change (the cost of vkDestroyPipeline per call was not measured). vk_pipeline.c compiles with no new warnings. It adds no wait to a drawing thread. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
529 KiB
529 KiB