mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 10:49:58 -04:00
Spread the texture pool's entry creation over frames by a per-frame time budget, and stop looking up the slots it left.
The pool refresh runs before every draw that binds the pools, so its count budget of 16 creations held per draw, not per submission. An area load in the 0.6.1.12 test made 4,925 entries (1.7 GB of uploads) in one 430 ms frame, and 2,018 in a 195 ms one. While slots were left over, every draw walked the whole table and looked each of them up again, about 100 ms of the 430 ms frame in key hashing alone. Once a frame's refreshes have taken pool_create_ms (default 6 ms; 0: no limit), they create nothing more until the next frame, and skip the slots left earlier in the frame. The first refresh of each frame keeps its count budget. The slots left keep their stand-in for a few frames during a large load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -558,6 +558,11 @@
|
||||
# the next refresh and show their stand-in until then. Lower spreads streaming over more frames (smaller hitches, a
|
||||
# frame or two of pop-in); higher loads sooner.
|
||||
# pool_create_budget = 16
|
||||
# The refresh runs before every draw that samples the pool, so the budget above holds per draw. Once a frame's
|
||||
# refreshes have taken this many ms, they create nothing more until the next frame (the first refresh of each frame
|
||||
# keeps its budget): an area load then spreads over several frames with stand-ins instead of holding one frame for
|
||||
# 200-400 ms. 0: no limit.
|
||||
# pool_create_ms = 6
|
||||
# Written storage-buffer ranges up to this size in MiB (1 to 256) go back to game memory as a merge, in 4 MiB pieces:
|
||||
# copied within video memory and only the words that changed written over PCIe. Larger ones are copied back whole at
|
||||
# the end of every submission. Raising it from 4 to 16 took a 5.5 MiB range off the plain copies (about 46 MiB a frame
|
||||
|
||||
Reference in New Issue
Block a user