mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 21:49:57 -04:00
Leave the texture table's slots alone when a texture is released and taken straight back.
In a large town the game releases and takes back about 40,000 textures per 3,600 submissions. Each was a bump of its address bucket, the fullest buckets (1,300 slots over one address) were bumped most, and the texture pool refresh refilled about 6,000 slots per submission: it used up its 6 ms of a frame in about half the frames there, which made the game CPU-bound (the GPU idle 10 ms a frame) and delayed new textures. A take-back of the entry that was released, with no other change at its address since, now puts the bucket's generation back to its value from before the release, so everything resolved then is current again. A bump takes the generation after the highest the bucket ever had, so the value in between is never given to another state. tex_gen_undo = 0 bumps as before. The pool line counts the take-backs that went back. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -154,6 +154,10 @@
|
||||
# made again within a few frames. The first start after changing it builds the pipelines again. 0: such textures stay.
|
||||
# 2 (diagnosis): the same marks, and such textures give way to stand-ins in the texture pool, but none is freed.
|
||||
# tex_disuse = 1
|
||||
# 1: a texture the game releases and takes straight back, with nothing else changed at its address, leaves the texture
|
||||
# table's slots there as they were, instead of having them all looked up again (large towns release and take back
|
||||
# thousands a second). 0: every release and take-back counts as a change, as before.
|
||||
# tex_gen_undo = 1
|
||||
# Host zstd decoder in place of the game's (0 = the game's), and a check that decodes every call both ways and logs
|
||||
# the differences (1 = on; slow). Ocarina of Time 1.1.1 keeps the game's decoder while zstd_native is unset: its host
|
||||
# decoding has not been through a check run yet, so there it takes zstd_native = 1 (or the check) to turn it on.
|
||||
|
||||
Reference in New Issue
Block a user