diff options
| author | kurrutako <kurrutako@users.noreply.github.com> | 2026-11-25 16:24:17 +0100 |
|---|---|---|
| committer | kurrutako <kurrutako@users.noreply.github.com> | 2026-11-25 16:24:17 +0100 |
| commit | f95b23e51864996b7a25a4cd4566ae24882efe2e (patch) | |
| tree | b8dca3da11b88f469068529b7ea4308a5eb6eba7 /runtime/test/vk_queue_query_sync_test.cpp | |
| parent | b0f3d3998f0401eb7df8ddbb7a303d1e6bee9fb8 (diff) | |
d3d12: write the session pipeline cache when the run ends with the device alive (RT-SESSION-CACHE-AT-EXIT)
pipeline_cache.session.bin was written only in ~Device. A title never
releases its device, so a real boot kept none of what it compiled: not
after a normal exit, a console close or a crash, and every boot built the
world start again.
save_pipeline_caches_at_exit writes the session cache of every live device
(a registry the Device constructor and destructor keep), once per process,
after stop_pipeline_compiles. A build still running on another thread is
given wait_ms, then the previous file is kept, as at teardown. gta6rt calls
it at the run's exit, at a console close, and from an unhandled-exception
filter (a fault in the title or its DLLs, the int3 after a device loss),
which then passes the exception on, so the exit code is unchanged.
d3d12_compile_teardown_test's exit case checks that the file is written
with the device alive, and only once.
AI-assisted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/vk_queue_query_sync_test.cpp')
0 files changed, 0 insertions, 0 deletions