mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 13:39:58 -04:00
Build the prepared shaders into the driver's cache at an update only when a sample says the driver lost them.
After an update that keeps the prepared shaders, --warm-shaders built all 42,000 of them into the graphics driver's cache again: 10 to 20 s at every update on a player's PC while the driver gave every one back at once, and the full build when it no longer had them (380 s there once, after a change of what they are built with). It now builds twelve fragment libraries spread over the list first, into the driver's cache alone, as the game's check at every start does, and builds the whole list only when fewer than three quarters of them came from that cache. On copies of an install's caches (RTX 5090): with the driver's cache partly cold after a relink, 5 of 12 came from it and the whole list was built (313 s); the run after it found 12 of 12 and built nothing more, the step taking 3 s. lib_warm = force builds the whole list whatever the sample says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -301,9 +301,11 @@ The stub swaps `python.next` in while no Python runs, then starts the new versio
|
||||
list was prepared from another shader seed than the one this kit writes: `shader-prepared.bin` carries the digests
|
||||
of the two seed files and the translator identity (`runtime/prp_file.h`), the step writes the seed first
|
||||
(`prepare_shaders.py --no-run`, seconds) and compares (`make_game.py` `seed_changed`); a list from before it
|
||||
recorded its seed is prepared again once. Another translator alone does not prepare again. The step still builds
|
||||
the prepared shaders into the graphics driver's cache again (`make_game.py` `warm_driver_cache`): seconds while
|
||||
the driver has them, 20 minutes on a player's PC when the update changed what they are built with. Its bar
|
||||
recorded its seed is prepared again once. Another translator alone does not prepare again. The step then asks
|
||||
the graphics driver's cache whether it still has the prepared shaders (`make_game.py` `warm_driver_cache`,
|
||||
`nx2navi.exe --warm-shaders`: a sample of twelve, as the game checks at every start) and builds them all into it
|
||||
again only when it does not: nothing more while the driver has them, 6 to 20 minutes on a player's PC after a
|
||||
driver update or an update that changed what they are built with. Its bar
|
||||
follows that count from 0 to 100 %, and the Updates row says an update takes from a few minutes to half an hour
|
||||
or more (`launcher/ui/app.py` `UPDATE_TAKES`).
|
||||
8. **Draw the Button Prompts**, with button art in the new version: only when the art, the prompt tools or the key
|
||||
|
||||
Reference in New Issue
Block a user