perf: Code Violet (PPSA26528) title screen at 1.8 FPS on Windows: both queue workers busy comparing imported guest memory (3.6 TB per 300 s) and copying 4 GiB buffers per dispatch #6257
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from boykopovar/AnyPS5. Originally posted by erm14254 on 2026-10-15T08:11:24Z.
Title and scene
PPSA26528, title screen (logo and START prompt, before pressing Start), warm caches after a restart; the main menu after pressing Start runs about three times slower still
What is slow or what changed
Frames take 0.55 s median (p90 0.71 s) at the title screen and 1.9 to 2.5 s at the main menu, on an RTX PRO 6000 Blackwell with driver 597.16 on Windows 11, at the title's 3840x2160. The GPU is busy for 155 ms of each 550 ms frame; both queue workers are at 100%. The large slices are Driver.Packet.dispatch (485 ms per frame, of which Resources.Complete 360 ms and Vulkan.Dispatch.shader_resources 351 ms) and Driver.Packet.memory_wait (324 ms per frame, WAIT_REG_MEM on the title's fences). About 1,300 compute dispatches run per frame.
A separate run with APS5_PROFILE_DRAW=1 and APS5_TRACE_SUMMARY_EVERY=30 (not the capture attached) names the two costs inside the resource phase:
Summary lines
Traces
aps5-trace-dae8651f631a-6360.json.gz
Digest
50 frames over 29914.2 ms (no summary line found)
Slowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 1217.0, Driver.Packet.dispatch 494.6, Driver.Dispatch 493.4, Resources.Complete 366.7, Vulkan.Dispatch 363.1, Vulkan.Dispatch.shader_resources 357.4, Driver.Packet.memory_wait 329.8, Driver.Packet.draw 272.5, Driver.Draw 272.4, Driver.Draw.draw_and_resource_release 168.7
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Worker stacks
not sampled
Capture
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T09:50:38Z.
I traced the reported upload through
ShaderResources::addGuestBuffer()andGuestBufferMemory::UploadFinish(). The descriptor's fullGetSize()is kept unless the device'smaxStorageBufferRangeforces a smaller bound. If no covering host import is available,copyRegion()reads and copies the region's full live span, so clipping the roughly 4 GiB V# would change valid shader addressability.The open import work (#6457, #6479 and #6730) addresses aligned import grouping, budget tracking and repeated refusal costs, but the profile excerpt does not show why this particular range fell back to a copied buffer. Could you capture the same dispatch on current
mainwithAPS5_TRACE_BIGBUF=1andAPS5_TRACE_HOST_IMPORT=1, and share the matching[bigbuf]line plus the import decision/refusal for that range? The descriptor base can be masked; the useful fields are its size/stride,hostImportAlignment, whether a covering import exists, and the refusal reason or import-budget state. That should distinguish an importability issue from a genuinely full-range resource before proposing a safe change.Imported from boykopovar/AnyPS5. Originally posted by erm14254 on 2026-10-16T11:10:33Z.
Tried this on current
main(51acb79ac) with onlyAPS5_TRACE_BIGBUF=1andAPS5_TRACE_HOST_IMPORT=1set. The title needs the four bring-up pull requests listed in #6256 to get past its earlier stops, so they were rebased on top; none of them touches the import path. Windows 11 (10.0.22631), RTX PRO 6000 Blackwell Workstation Edition (NVIDIA 597.16), WinLibs GCC 15.2.0 r7, Release.It no longer reaches the title screen. About nine minutes in, before the dispatches that copy the 4 GiB range, it aborts in the function traced:
That is
Require((words[1] & 0x40000000u) == 0, ...)inShaderResources::addGuestBuffer. The check already exists atd92a8dad3, where the same title and pull requests reach the title screen, so something merged since then sends this shader's buffer through it.No
[bigbuf] uploadline was written before the abort (only six writebacks of one 1.3 MiB range), so I can't give you the import decision for the 4 GiB range on currentmainyet. I'll redo the capture once the title reaches its title screen onmainagain.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by erm14254 on 2026-10-16T11:34:56Z.
Latest plain
mainas well, without the bring-up pull requests (0615cd2b8, only the same two switches set): the title stops a few seconds after start, on a black screen, at the NVIDIA 597.16 shader-compiler crash listed in #6256:Up to that point the trace shows 6140 host imports, all accepted (the largest 256 MiB each), no refusal, no budget message and no
[bigbuf]line, so the 4 GiB range is never requested before the stop. The dispatch you asked about needs the bring-up pull requests, and with them currentmainaborts as described above.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T01:35:47Z.
Thanks for the retest. This narrows the current-main result: the plain-main run stopped in the NVIDIA shader compiler after 6,140 accepted host imports, before the reported 4 GiB dispatch; the bring-up stack stopped earlier on the reserved-bit check. Neither run reaches the import decision for that buffer, so there is still no evidence of a host-import refusal or safe basis for clipping its descriptor range. I will leave the performance path unmodified until a run reaches that dispatch and captures the matching import decision.