An update that carries the shaders over builds the kit's current pipeline list, and a GPU without mesh shaders skips the list's mesh pipelines.

The carry path of an update does not run the shader preparation: it runs --warm-shaders, which builds the listed pipelines from the seed-pipeline-keys.bin the game folder already has. make_game.py now writes that file from the kit's list first, so a newer list reaches an updated install. Its shader variants are not translated on this path; a record whose variant the folder has neither prepared nor met is left out and counted.

On a GPU that has no mesh shaders every mesh record failed with a log line each. They are counted in the step's line instead.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-10 14:56:56 -05:00
parent 918d399d55
commit 87551c7618
2 changed files with 23 additions and 4 deletions

View File

@@ -1622,6 +1622,20 @@ def shader_run(cmd, cwd=None):
return rc
def refresh_pipeline_seed(out):
"""The kit's pipeline list (tools/pipeline_list.py) as the game folder's seed-pipeline-keys.bin, so that an update
which carries the shaders over builds a newer list's pipelines too: `--warm-shaders` builds from that file. The
list's shader variants are not translated on this path, so a record whose variant this folder has neither prepared
nor met is left out by the game, which counts those in its line."""
lst = KIT / 'tools' / 'data' / 'pipeline_list.bin'
if not lst.is_file():
return
import pipeline_list
got = pipeline_list.unpack(lst.read_bytes())
if got:
(out / 'seed-pipeline-keys.bin').write_bytes(got[1])
def warm_driver_cache(out):
"""After an update that carries the shaders over: every prepared stage library is built into the graphics driver's
cache again (`nx2navi.exe --warm-shaders`). It takes seconds while the driver still has them. It takes minutes when
@@ -1633,6 +1647,7 @@ def warm_driver_cache(out):
exe = out / EXE_NAME
if not exe.is_file() or not (out / 'shader-prepared.bin').is_file():
return
refresh_pipeline_seed(out)
say(" the prepared shaders are built into the graphics driver's cache again")
t0 = time.monotonic()
try: