3 Commits
Author SHA1 Message Date
Indy2landClaude Opus 5.5 80c70b719f perf(cores): run the submitting thread's helpers at its priority
The submitting thread runs above normal, but the threads it waits for
(the wide pool, the landing pools, heap records, the heap pass beside
the lists) ran at normal priority, level with the title's threads and
the list translators. On a six-core CPU they were often not running
while it waited. VICTORY_HELPER_PRIORITY (on unless 0, VICTORY_AB can
flip it) raises them to above normal.

A/B in one run on an i5-12400F with an RTX 3060 (run10, Series S at
540p, off / on): 8.6 / 9.6 fps, refreshes 23.1 / 17.6 ms a frame,
waiting for heap records 6.2 / 2.5 ms, card idle behind the submitting
thread 24.7 / 13.2 ms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 09:44:12 +01:00
Indy2landClaude Sonnet 5.5 cda4987aa4 fix(scripts): windows in card memory the CPU maps, for 16 GB PCs
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]>
2026-11-26 17:52:23 +01:00
Indy2landClaude Sonnet 5.5 2d1dc3826f Texture read-backs: written by a thread of their own; landing timing split
"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]>
2026-11-26 17:14:15 +01:00