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 senjinthedragon on 2026-10-26T14:20:06Z.
Title and scene
ASTRO BOT, PPSA21567 (EU) 01.018.000, Linux. Continuing a save from the title screen: the warp transition after pressing Continue (swirling PlayStation shape icons, the controller ship with the bots flying into the centre while the music fades out), then the galaxy map coming into view (zoom-out with the locations appearing).
What is slow or what changed
Everything up to the point where the warp ships reach the centre runs normally. From the moment the galaxy map starts loading, the title drops below 1 fps and stays there:
On the same machine:
main329efe1bf(22 Oct)main9bbb7f37c(26 Oct)astrobotreference build 222bccd54, for scaleMeasured after a clean reboot with nothing else running (432 MiB VRAM in use before launch, 27 GB RAM free), warm shader cache (2,088 hits, 0 misses).
What I checked:
host import budget: 11925 MiB live of 11972 MiB (the default; host heap 1 reports a budget of 23944 MiB ...); 11 imports (35552 MiB) refused so far, last 0x1000000000+0xca000000. WithAPS5_HOST_IMPORT_MIB=16384there are no refusals, but it is just as slow.perf record -e cpu-clocksample (call stacks were not available on this kernel) puts about 60 % of the process's samples in glibc'smemcpy(__memcpy_avx_unaligned_erms), almost all of them on that thread. Page faults stay low (about 70 minor faults in 3 s), so it does not look like a write-watch fault storm.[write-watch] host imports resolve write protection: no (0 of 4 scratch pages written after a GPU read, 0 after a GPU write, 4 after the import); imported ranges stay watched. This NVIDIA proprietary path may be the one that changed, since most of the measurements in #7895 and #8052 come from AMD cards.Local changes in my build: an opt-in texture mip-skip (off for this comparison,
APS5_TEXTURE_DOWNSCALE=0, same result) and a fallback to transparent black for border colour table samplers (#665). Neither touches the memory paths above. The slowdown also reproduces with both runtime switches at their defaults.Summary lines
Capture with
APS5_TRACE_SUMMARY_EVERY=30 APS5_TRACE_BENCH=1on9bbb7f37c(warm caches), fps per 30 s interval:The line for the 213-243 s interval (black screen, music fading):
dirtyis the two local changes described above;APS5_TEXTURE_DOWNSCALE=1was set in this capture.What stands out in that line: a frame takes about 2.7 s (p50 2743 ms), and of the 8.2 s per frame in
Driver.Packet, 5.4 s isDriver.Packet.memory_wait. The trace below shows how that splits up: queue worker 0x0 is busy 98 % inDriver.Packet, the draw committer 70 % (mostlyGraphics.DrawandResources.Complete, about 1.5-1.6 s per frame each), while queue workers 0x40 and 0x48 spend 96 % of each frame inDriver.Packet.memory_wait(about 2.4 s per frame). The GPU is busy 42 % of the time (939 ms per present).Traces
aps5-trace-9bbb7f37c655-16277.json.gz, attached in a comment below:APS5_TRACE_SECONDS=180:60, Continue pressed as soon as the title allowed it, so the window covers the end of the warp and the black screen while the music fades out. Tracing adds its own overhead.Digest
seconds 180:60 from present 2155: 27 presents, frame p50 2278.4 / p90 2535.4 / p99 2554.0 / max 2554.0 ms, GPU busy 939.1 ms per present
NVIDIA GeForce RTX 2080, NVIDIA 615.78.08, Linux 7.3.0-2-wyrmix, 3840x2160, commit
9bbb7f37c6(dirty), dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 6626.6, Driver.Packet.memory_wait 4350.5, Resources.Complete 1641.9, Driver.Packet.draw 1565.1, Driver.Draw 1564.8, Graphics.Draw 1542.8, Driver.Draw.draw_enqueued 1540.1, Graphics.Draw.draw_and_resource_release 1539.1, batch 947.8, Driver.Packet.dispatch 206.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
Machine
SDL_VIDEODRIVER=x11, native Wayland stayed black on this setup)--to-intelCapture