perf: Astroneer (PPSA27623) opening cutscene runs at ~10 FPS #21967
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 talha-devp on 2026-11-16T23:36:42Z.
Title and scene
PPSA27623 (Astroneer 1.0), the opening cutscene with no input: the planet-surface part, about 27–135 s after launch. The capture window is 30–60 s.
What is slow or what changed
The planet-surface part of the opening cutscene runs at 9.3–10.8 FPS (this window: 10.35 FPS, frame p50 93 ms) while the GPU is busy about 41 ms per frame, so the time is spent on the CPU side of AnyPS5. The space part that follows (from about 138 s) runs at 28–31 FPS.
Plain
maincannot run the cutscene. Onmain459f4f8c22, 7 of 11 launches aborted during the opening (six withguest sampler descriptor uses unnormalized coordinates with anisotropic filtering, one withunknown anisotropy ratio 7), and the survivors draw the cutscene upside down in wrong colours. That is the #16053 regression (#20835); with #20845's revert (87c75c1e7f) there were 0 aborts in 14 launches. The capture below ismain459f4f8c22+87c75c1e7f.Where the time goes (separate profiled runs with
APS5_PROFILE_DRAW,APS5_PIPELINE_STATSand worker sampling, so their absolute times are inflated; about 1,950 draws per frame):APS5_DRAW_PIPELINE=1 APS5_PIPELINE_DISPATCH=1 APS5_PIPELINE_DISPATCH_MISSES=1the cutscene runs at about 12.8 FPS and the committer is the limit.Launches are bimodal. In some launches (4 of 8 warm, 1 of 8 cold) a per-frame CPU buffer fill of a 640 KiB range takes the CPU-store path (
BufferFill.cpp,if (!stored)→WaitIdle) becauseFillBufferfinds no host import covering it, which costs about 14–19 ms per frame (−14 to −20 % FPS). The capture below is from such a launch (Vulkan.Retireexceeds its wait by about 14 ms per frame). In fast launches the import is made when the title maps that memory at the start of the cutscene. #18829 narrows that wait, but did not help here: every expensive wait was a pending GPU read of that same range.I'm working on this: first on why the host import is missing in the slow launches.
Windows 10 22H2 (19045), RTX 4060 (NVIDIA 621.14), Ryzen 5 5600, MSYS2 UCRT64 GCC 16.2.0, Release.
Summary lines
Traces
aps5-trace-36c6a3aa421c-15332.json.gzis kept locally and I can attach it. Its buffers filled (queue worker 0 after 6.7 s, the committer after 16.1 s) at the defaultAPS5_TRACE_EVENTS, so slice timings cover the retained events only; the summary statistics are complete.Digest
Thread table (ms per frame, from the retained events): queue worker 0x20 busy 2.9 / wait 93.4, draw committer busy 35.3 / wait 0.6, presenter busy 0.7 / wait 15.0, GPU 41.3.
Capture
APS5_TRACE_SUMMARY_EVERY=10and the frame-dump variables, and writes the log to a file.