Time the staging allocation's wait for an upload batch, and say what the batch limit and the staging pool do now.

A staging buffer that does not fit the staging pool's blocks waits for the oldest upload batch with the upload lock
held, and a replay submission that sends its uploads waits for that lock. The wait cannot leave the lock: the caller
holds the open batch's command buffer and the buffer it asks for belongs to that batch. What the wait costs on an area
load was not measured anywhere, so it is timed and logged now: the first four waits, then at every doubling of their
count, with the total and the longest.

Since staging stays inside the pool's blocks every batch is submitted at 64 MiB of staging, so upload_batch_mb = 0 is
that limit and not "no limit", and the values above it (the low-end mode's 256, the menu's 128 to 1024) change
nothing; a discrete card keeps 256 MiB of staging for the run, not 128. The settings table, the menu's text,
nx2navi.ini.example, the audit's table and the comments say so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-12 22:27:25 -05:00
parent 345b393acc
commit 96d656ba1d
5 changed files with 31 additions and 8 deletions

View File

@@ -311,7 +311,8 @@
# video memory: 1 turns on the settings written for them and measured on a Radeon RX 580, for every key below that
# this file does not set itself. Mesh shaders run as compute where the card has none (mesh_emulation), video memory
# stays within what the driver reports free (vram_heap_limit = auto, vram_reserve_mb = 512), large texture upload
# batches go to the GPU early (upload_batch_mb = 256), game memory is copied for the GPU while a frame is recorded and
# batches go to the GPU early (upload_batch_mb = 256; every batch goes at 64 MiB of staging at the latest with or
# without it, so only a value below 64 acts), game memory is copied for the GPU while a frame is recorded and
# the game waits less for the GPU (mirror_stage = 1, submit_finish_gpu = 0), frames are prepared on a thread of their
# own (replay_async = 1, which can show a dark or flickering frame now and then), pools the game refills every frame
# stay in system memory (mirror_hot = 25), and a texture read after another image was drawn over its memory gets