mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 11:29:58 -04:00
Make the mesh fallback's programs on up to four worker threads instead of one.
A place's task and mesh programs all arrive in its first frames, and each one's draws are left out until its compute pipelines are built, so with one thread the foliage of a first visit filled in one program at a time. NX2NAVI_MESH_FALLBACK_WORKERS (auto: one thread for each 4 logical processors, 1 to 4) sets how many threads make them, and the log says how long the queue took to empty the first time. Measured with the fallback forced on, no pipeline cache and new exe names (cold driver cache), the adult save's first 75 s: with 1 worker the first 5 programs were ready after 420 ms, 3,266 draws were skipped while a pipeline or program was pending, 1% low 16.1 fps and 145 frames over 50 ms; with 4 workers 256 ms, 956 draws, 55.7 fps and 35. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -889,6 +889,9 @@
|
||||
# Video memory in MB for what those compute passes hand to the draws. A draw that needs more loses the geometry that
|
||||
# does not fit, and the log says so.
|
||||
# mesh_fallback_mb = 128
|
||||
# Threads that prepare those compute passes for the mesh programs a place uses, the first time each is drawn (until
|
||||
# then its draws are left out). auto (default): one for each 4 logical processors, 1 to 4.
|
||||
# mesh_fallback_workers = auto
|
||||
# Windows, 1 (experimental): the game's heap is committed a 64 KiB run at a time where it is first used, instead of
|
||||
# all of it when the game sizes it. Windows counts committed memory against RAM plus the page file whether it is used
|
||||
# or not, and in Castle Town after Hyrule Field about 3.4 of the heap's 6.8 GiB had never been used. 0: committed up
|
||||
|
||||
Reference in New Issue
Block a user