mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 11:29:58 -04:00
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:
@@ -119,8 +119,9 @@ static const char *const text_en[UI_TEXT_COUNT] = {
|
||||
"driver does not run out. Off: no limit.",
|
||||
[UI_MENU_LOWEND_UPLOAD_BATCH] = "Upload batch limit",
|
||||
[UI_MENU_LOWEND_UPLOAD_BATCH_DESC] = "Texture uploads waiting in staging memory are sent to the GPU early once they "
|
||||
"hold this much, so an area load cannot run video memory out.",
|
||||
[UI_MENU_LOWEND_NO_LIMIT] = "No limit",
|
||||
"hold this much, so an area load cannot run video memory out. Every batch is "
|
||||
"sent at 64 MB at the latest, so none of these choices changes anything now.",
|
||||
[UI_MENU_LOWEND_NO_LIMIT] = "64 MB",
|
||||
[UI_MENU_LOWEND_ASTC_KEEP] = "Keep the ASTC decode buffer",
|
||||
[UI_MENU_LOWEND_ASTC_KEEP_DESC] = "The buffer that GPU-decodes compressed textures is kept between upload batches "
|
||||
"instead of being allocated again for each one.",
|
||||
|
||||
Reference in New Issue
Block a user