upload: stop named_in_upload's scan at the end of the request (≈10 fps with RT in dense areas) #117
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ReTerryDavis--ReVIctory!117
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-116"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@vicky-revicky001 on GitHub · 2026-12-05 12:50 UTC · original
vicky-revicky001:upload-block-ends-with-request→main· +20 −3 · 1 files · 1 commits · merged 2026-12-05 17:25 UTCupload::block(address)returns the taken blocks fromaddressto the end of the whole run of contiguous taken blocks, not to the end of the request (allocate_uploadcall) that holdsaddress. Eachallocate_uploadrequest is handed out side by side with others, soMemory::named_in_uploadreads every upload that follows it, other lists' included.Measured in a crowded city spot (RX 9070, 1080p FSR 4 Quality, RT on,
VICTORY_RT_PRESET=performance): each scan read ~1.8 MB, ~90 times a frame (~5 GB/s), all under theMEMORYlock. That was ~125 µs a scan; other translating threads waited ~50 µs for the lock on every builder dispatch. Almost no scan found a new page to map.The fix records where each request starts (
Arena::starts) and stopsblock()at the next start, so the scan covers the request's own instance descriptions, as the doc comment ofnamed_in_uploadintends.After the change, same spot:
memory_ready~32 µs a dispatch (was ~95 µs)VICTORY_UPLOAD_SCAN_ONE=0restores the old behaviour.🤖 Generated with Claude Code
@Saksukella on GitHub · 2026-12-05 18:01 UTC · original
Tested this independently on **AMD Radeon RX 9070 XT (