mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 11:29:58 -04:00
Add a per-frame texture work log line and two ASTC upload changes, all off by default.
texup_log_ms logs a "texup:" line for each frame whose texture work on the render or replay thread reaches that many milliseconds. The line splits the time into texture creation, staging, storage copies, ASTC recording, scratch buffers and new device memory, to show where an area load's hitch goes. astc_scratch_keep keeps the ASTC decoder's scratch buffer across upload batches instead of making a new 64 MiB buffer for each batch. astc_arena stages GPU-decoded ASTC blocks in the staging arena instead of a buffer per texture. Both aim at the allocation churn seen during area loads and stay off until a play test measures them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,12 @@
|
||||
# With astc = gpu: the compute shader reads the blocks in the game's tiled layout, so the CPU only copies the
|
||||
# texture (0 = the CPU untiles the blocks first).
|
||||
# astc_gpu_deswizzle = 1
|
||||
# With astc = gpu: 1 keeps the decoder's scratch buffer from one upload batch to the next instead of making it again for
|
||||
# each, to shorten the hitches when an area loads (0 = one per batch; off until a play test measures it).
|
||||
# astc_scratch_keep = 0
|
||||
# With astc = gpu: 1 stages a texture's ASTC blocks in the shared staging ranges instead of a buffer of their own
|
||||
# (0 = a buffer each; off until a play test measures it).
|
||||
# astc_arena = 0
|
||||
# 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).
|
||||
# zstd_native = 1
|
||||
@@ -463,3 +469,7 @@
|
||||
# 1: the frame-time summary also splits the replay by op kind (draw, bind, transfer), which says where a stalled frame
|
||||
# went. The clock reads cost a fraction of a millisecond a frame, so it is off by default.
|
||||
# replay_time = 0
|
||||
# A frame whose texture work on the render thread (new textures, uploads, upload submits) takes at least this many ms
|
||||
# gets a "texup:" line in the log that splits it: creation, staging, storage copy, ASTC recording, scratch buffers and
|
||||
# new device memory (up to 400 lines; 0: none; 16 catches the area-change hitches).
|
||||
# texup_log_ms = 0
|
||||
|
||||
Reference in New Issue
Block a user