On a PC with 16 GB of RAM (RTX 3060 12 GB, i5-12400F, Series S at 540p)
every run with play-nvidia.ps1 ended a minute or so into the world: the
card's shared memory (the PC's, capped by Windows at half the RAM) reached
7.5 GB, a host list failed to close or be made with 0x8007000E, and the
driver faulted in CopyTextureRegion. About two thirds of that memory were
the windows of title memory outside buffers.
VICTORY_WINDOWS_BAR_MB=3072 puts them in card memory the CPU maps
(D3D12_HEAP_TYPE_GPU_UPLOAD) while the card has room. Same machine: no
crash in 5+ minute runs, shared memory flat at about 4.4 GB, 10-12 fps in
the world instead of 1.6-3. Without a resizable BAR, mapped_card_buffer
returns None and windows stay where they were.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
"read-backs and lists" in the landing line is split into texture
read-backs, buffer read-backs and the flights' card plans and own work.
On a 16 GB machine with an RTX 3060 (Series S, 540p) the texture part
stood at 1-2 ms a frame, and at 124-416 ms in the frames where the world
streamed: texback::land waits for the lock against mapping changes
(watch::title_memory_reading), which the title changes all the time
then, and the landing of every submission waited with it.
The landing thread now only copies a read-back's texels out of its
buffer; waiting for the locks, tiling and writing into title memory go
to a thread of their own, which writes only the newest of several
copies of one allocation (the title reads the frame before at most).
VICTORY_TEXBACK_ASYNC=0 writes them where they land, as before. A new
line gives the writer's waits and work per frame.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>