mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 04:49:57 -04:00
The library workers link the pipelines of skipped draws, so a burst of new materials is linked on several threads instead of by the one pool worker that is not inside an optimised build.
A draw that is skipped while its pipeline builds leaves the pipeline to the pool: a job is fast-linked first and goes back in the queue for its optimised build. The pool keeps one worker out of optimised builds; with the other three inside one (100 to 350 ms each) that worker linked every new pipeline of a burst one after another. The library workers, which so far served only draws that wait, now take the fast link of a draw-queue job too (vk_pipeline.c fast_take, lib_worker), and there are as many of them as pool workers (four on sixteen logical processors, two before). Measured on a first visit to Kokiri Forest (RTX 5090, libraries in the driver's cache): of the 444 pipelines draws missed, 180 took over 50 ms to become usable, the longest 1.3 s, and their draws were missing from every frame until then. With this change and the two beside it (feedback loops, the look-ahead) 23 did, 19 of them mesh pipelines, which have no fast link. pipe_fast_workers = 0 (NX2NAVI_PIPE_FAST_WORKERS) gives the old behaviour. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -99,6 +99,9 @@
|
||||
# A pipeline whose fragment shader reads the picture it draws into (soft particles, water, some full-screen passes) is
|
||||
# linked from the shader libraries like any other. 0: as before, such a draw waits for the whole compile.
|
||||
# gpl_feedback = 1
|
||||
# The threads that build shader libraries also link the pipelines of draws that were left out of a frame, several at
|
||||
# once, instead of one thread linking them one after another while the others build optimised pipelines. 0: as before.
|
||||
# pipe_fast_workers = 1
|
||||
# The graphics driver's cache of shader libraries is checked at every start and, when it lost them (a driver update,
|
||||
# a cache the driver emptied), filled again in the background while the game runs. 0: no check; force: at every start.
|
||||
# lib_warm = 1
|
||||
|
||||
Reference in New Issue
Block a user