diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 00:21:36 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-12-01 00:21:36 -0500 |
| commit | c3cf5f4fcc3877da715f6af79707460f88f0a708 (patch) | |
| tree | 936387c400551c40d9db3769d2b7cfc723b94379 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | cb1f3acf9bdb2eb6101f9865a55c4d86289367e2 (diff) | |
The precompile makes its pipelines at the game's static sampler places: the world no longer compiles them again
The game makes the static samplers listed beside the pipeline library at fixed places in the driver's
table when its device is made (pipeline/places.rs), because a compiled pipeline holds those places and
the driver's cache on disk keys on them. That happened only where the library's folder was set, which
`leonida warm`'s processes never set: their samplers took the places their first pipelines gave them,
so the driver kept what the precompile compiled under other places than the game's pipelines have, and
the game compiled them all again in the world. After a precompile that had just made them, 1,100 to
2,300 pipelines were "being made" in the first world frames (runs d257, d285, d286); in d285 and d286
frames took 4 to 10 s for minutes, with up to 3,000 draws a frame dropped for want of a pipeline
(missing objects, flashes), until the run was stopped.
The precompile's processes now read the same list (`places::use_list`, from
`known::use_translations`) and make its samplers first, as the game does; they write nothing to the
list and keep no library (the driver makes their pipelines, and its cache keeps them for the game).
`what_a_precompile_makes_the_game_finds_in_the_drivers_cache` measures it on the card, in processes of
its own: precompiled with the list, a compute and a graphics pipeline took 11.0 and 4.4 ms and the
game's run then 1.1 and 0.8 ms (from the driver's cache); precompiled without it, 12.8 and 4.5 ms and
the game's run 9.0 and 5.3 ms (compiled again).
AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: the pipeline::places tests on the
card (8 passed, the new one included).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions