mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 04:19:57 -04:00
Make a draw whose shaders write memory wait for its pipeline like a one-shot draw.
A draw into targets the game renders every frame is left out while its shaders or pipeline build, because the next frame draws it again. A storage buffer the shaders write or an image they store into is not redrawn that way: with the draw left out, that memory keeps what it held for everything that reads it. Such a draw now takes the wait a draw into one-shot targets takes, from the frame's wait pool, and is skipped only at the end of it. Only the stages already translated can say that they write; a draw whose writing stage is still being translated is skipped as before. draw_writers_wait = 0 turns the rule off, and the periodic line about waited draws counts the draws that waited by it alone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -157,6 +157,11 @@
|
||||
# of a new area take to build.
|
||||
# oneshot_budget = 1
|
||||
# oneshot_wait_ms = 30000
|
||||
# A draw whose shaders also write memory (a storage buffer, or an image they store into) waits for its pipeline in
|
||||
# the same way, also when it draws into a picture the game draws every frame: left out of a frame, it would be drawn
|
||||
# again the next frame, but what it was to write would be missing for everything that reads it until then. 0: such a
|
||||
# draw is left out like any other while its pipeline is built.
|
||||
# draw_writers_wait = 1
|
||||
# Build shader stage libraries in the background ahead of time, and the threads for it (1 to 16; default 2). More
|
||||
# threads mostly wait on the graphics driver's lock: 16 on NVIDIA spent about 8 cores spinning in the driver.
|
||||
# lib_prebuild = 1
|
||||
|
||||
Reference in New Issue
Block a user