[GAME STATUS]: ASTRO's PLAYROOM (PPSA01325) — perf profile on RX 6700 XT (RDNA2): ~110 ms 3D per frame in level, no async compute/copy #1113

Closed
opened 2026-11-26 09:43:29 +00:00 by github-bot · 3 comments
Owner

@⁠klim9929 on GitHub · 2026-10-06 18:52 UTC · original

Game title

ASTRO's PLAYROOM

Game ID / serial

PPSA01325

KytyPS5 version

Official build KytyPS5-2026-10-06-fb7ff7e (ver 0.3.0)

Compatibility status

In game

Last working build / first broken build

No response

Result details

The game reaches controllable gameplay (CPU Plaza and levels) but performance is very low on RDNA2: 5-8 fps in levels, ~25 fps with the camera pointed away from level geometry.

Profile data (Windows GPU engine perf counters + thread sampling, measured while in level):

  • GPU engine utilization: 3D ~64-68% average; NO Compute engine activity; NO Copy engine activity (uploads appear serialized on the 3D queue).
  • Emulator CPU usage: ~1 core total of 12; one dominant thread ~53% of a single core, all other threads <=7%. Serialized prepare/submit loop waiting on the GPU - neither side saturated, the rest is bubbles.
  • Frame math: ~166 ms/frame, ~110 ms of it GPU 3D busy at a forced 1080p internal render target. The console renders this scene at 60 Hz on similar TFLOPs, so the effective recompiler/pipeline overhead is roughly 6-7x.
  • Shader counts keep growing slowly during gameplay (VS 79 / PS 118 / CS 31) - on-the-fly compilation present but not a stutter storm.
  • Title screen hits the --vblank-frequency 30 cap (30 fps) with CPU/GPU mostly idle.

Steps to reproduce the result

  1. Open KytyPS5 (build KytyPS5-2026-10-06-fb7ff7e).
  2. Boot ASTRO's PLAYROOM (PPSA01325, 01.904.000).
  3. Enter CPU Plaza and any level (e.g. Memory Heaven).
  4. Look at the level geometry with the camera: fps counter in the window title drops to 5-8.
  5. Point the camera at the sky/empty space: fps rises to ~25.

Expected behavior

On a PS5-class GPU (RX 6700 XT is similar in TFLOPs to the console) this scene renders at 60 Hz in 16.6 ms. The emulator currently spends ~110 ms of GPU 3D time per frame at a forced 1080p internal target, so I would expect roughly an order of magnitude less GPU time per frame once known inefficiencies are addressed.

OS

Windows 11 Pro, build 26200

CPU

AMD Ryzen 5 5600 (6C/12T)

GPU

AMD Radeon RX 6700 XT, Adrenalin 26.8.1 (driver 32.0.21045.5002), Vulkan

RAM / VRAM

32 gb ddr4 3600 4 planks

Log file upload

prof_fb7ff7e_20261006.zip

Screenshots/video

No response

Extra notes

A community memory patch was applied and verified in the guest log ("Successfully applied cheat: Select the common GI-unavailable state" + "Fixed render resolution 1920x1080"), so the internal render target is forced to 1080p and GI is disabled - the measurements above are WITH those active.

Full guest printf log attached (prof_fb7ff7e_20261006.zip, ~28 MB uncompressed). Patched JSON used for the partial cheat application can be shared if useful.

Questions:

  • Is ~110 ms 3D/frame at 1080p on RDNA2 expected at this stage, or are known inefficiencies already identified here?
  • Would a Tracy capture (--profile) or command buffer dumps from this level be useful? Happy to run specific env switches/patches and re-measure.
**@⁠klim9929** on GitHub · 2026-10-06 18:52 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1113) ### Game title ASTRO's PLAYROOM ### Game ID / serial PPSA01325 ### KytyPS5 version Official build KytyPS5-2026-10-06-fb7ff7e (ver 0.3.0) ### Compatibility status In game ### Last working build / first broken build _No response_ ### Result details The game reaches controllable gameplay (CPU Plaza and levels) but performance is very low on RDNA2: 5-8 fps in levels, ~25 fps with the camera pointed away from level geometry. Profile data (Windows GPU engine perf counters + thread sampling, measured while in level): - GPU engine utilization: 3D ~64-68% average; NO Compute engine activity; NO Copy engine activity (uploads appear serialized on the 3D queue). - Emulator CPU usage: ~1 core total of 12; one dominant thread ~53% of a single core, all other threads <=7%. Serialized prepare/submit loop waiting on the GPU - neither side saturated, the rest is bubbles. - Frame math: ~166 ms/frame, ~110 ms of it GPU 3D busy at a forced 1080p internal render target. The console renders this scene at 60 Hz on similar TFLOPs, so the effective recompiler/pipeline overhead is roughly 6-7x. - Shader counts keep growing slowly during gameplay (VS 79 / PS 118 / CS 31) - on-the-fly compilation present but not a stutter storm. - Title screen hits the --vblank-frequency 30 cap (30 fps) with CPU/GPU mostly idle. ### Steps to reproduce the result 1. Open KytyPS5 (build KytyPS5-2026-10-06-fb7ff7e). 2. Boot ASTRO's PLAYROOM (PPSA01325, 01.904.000). 3. Enter CPU Plaza and any level (e.g. Memory Heaven). 4. Look at the level geometry with the camera: fps counter in the window title drops to 5-8. 5. Point the camera at the sky/empty space: fps rises to ~25. ### Expected behavior On a PS5-class GPU (RX 6700 XT is similar in TFLOPs to the console) this scene renders at 60 Hz in 16.6 ms. The emulator currently spends ~110 ms of GPU 3D time per frame at a forced 1080p internal target, so I would expect roughly an order of magnitude less GPU time per frame once known inefficiencies are addressed. ### OS Windows 11 Pro, build 26200 ### CPU AMD Ryzen 5 5600 (6C/12T) ### GPU AMD Radeon RX 6700 XT, Adrenalin 26.8.1 (driver 32.0.21045.5002), Vulkan ### RAM / VRAM 32 gb ddr4 3600 4 planks ### Log file upload [prof_fb7ff7e_20261006.zip](https://github.com/user-attachments/files/33121167/prof_fb7ff7e_20261006.zip) ### Screenshots/video _No response_ ### Extra notes A community memory patch was applied and verified in the guest log ("Successfully applied cheat: Select the common GI-unavailable state" + "Fixed render resolution 1920x1080"), so the internal render target is forced to 1080p and GI is disabled - the measurements above are WITH those active. Full guest printf log attached (prof_fb7ff7e_20261006.zip, ~28 MB uncompressed). Patched JSON used for the partial cheat application can be shared if useful. Questions: - Is ~110 ms 3D/frame at 1080p on RDNA2 expected at this stage, or are known inefficiencies already identified here? - Would a Tracy capture (--profile) or command buffer dumps from this level be useful? Happy to run specific env switches/patches and re-measure.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:43:29 +00:00
Author
Owner

@⁠klim9929 on GitHub · 2026-10-06 19:04 UTC · original

Follow-up: found a likely serialization hotspot while reading the source.

src/graphics/guest_gpu/graphicsRun.cpp:1087-1097 — the EOP event path with GDS
readback (eop_event_type 0x2f, cache_action 0x00, event_index 0x06) calls
SynchronizeGpu(), which is CommandScheduler::Finish() → m_master.Wait(CurrentTick()-1)
(src/graphics/host_gpu/renderer/commandScheduler.cpp:184-192): a full queue drain
with a blocking host wait. The value is then read from the host GDS buffer via
ReadGds(), and WriteAtEndOfPipeGds32() itself is a stub (sync.cpp:101-107).

If the game issues this EOP event once per frame (or more), every occurrence
drains all queued work and blocks the GPU thread until the GPU catches up. This
matches the profile in the issue report exactly: the GPU thread sits in a wait
~53% of wall time, the 3D engine is only ~65% utilized at 6 fps, and there is no
Compute/Copy engine activity.

Possible direction: instead of draining, enqueue a queue-ordered copy from the
GDS buffer region to the destination guest buffer (via the buffer cache), and
route the interrupt through the existing DeferPriorityOperation machinery. The
guest-visible timing of the writeback would need care (if the game CPU-polls dst,
a deferred write changes observable ordering), so this is maintainer territory —
but removing the full drain could eliminate the per-event pipeline bubble.

Happy to instrument (count how often this path triggers per frame) or test
patches on RX 6700 XT.

**@⁠klim9929** on GitHub · 2026-10-06 19:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1113#issuecomment-6023447392) Follow-up: found a likely serialization hotspot while reading the source. src/graphics/guest_gpu/graphicsRun.cpp:1087-1097 — the EOP event path with GDS readback (eop_event_type 0x2f, cache_action 0x00, event_index 0x06) calls SynchronizeGpu(), which is CommandScheduler::Finish() → m_master.Wait(CurrentTick()-1) (src/graphics/host_gpu/renderer/commandScheduler.cpp:184-192): a full queue drain with a blocking host wait. The value is then read from the host GDS buffer via ReadGds(), and WriteAtEndOfPipeGds32() itself is a stub (sync.cpp:101-107). If the game issues this EOP event once per frame (or more), every occurrence drains all queued work and blocks the GPU thread until the GPU catches up. This matches the profile in the issue report exactly: the GPU thread sits in a wait ~53% of wall time, the 3D engine is only ~65% utilized at 6 fps, and there is no Compute/Copy engine activity. Possible direction: instead of draining, enqueue a queue-ordered copy from the GDS buffer region to the destination guest buffer (via the buffer cache), and route the interrupt through the existing DeferPriorityOperation machinery. The guest-visible timing of the writeback would need care (if the game CPU-polls dst, a deferred write changes observable ordering), so this is maintainer territory — but removing the full drain could eliminate the per-event pipeline bubble. Happy to instrument (count how often this path triggers per frame) or test patches on RX 6700 XT.
Author
Owner

@⁠klim9929 on GitHub · 2026-10-07 22:46 UTC · original

Follow-up 2: instrumentation result — the SynchronizeGpu() hypothesis from the
previous comment is disproven.

I built main (6ef4065-dirty) with a counter in CommandProcessor::SynchronizeGpu()
that logs call frequency every 5 seconds, and played PPSA01325 on RX 6700 XT
through CPU Plaza into the Memory Heaven level at ~5 fps: 0 calls across 4085
frames. The GDS EOP readback path (0x2f/0x06) is not hit during normal
gameplay of this title, so the per-frame stall is not the full-queue drain.

Revised reading of the original profile: the 53% figure for the GPU thread was
CPU time (TotalProcessorTime), i.e. real work — translating PM4 → Vulkan — not
blocked time. Combined with ~110 ms of 3D engine time per frame at a forced
1080p target, the wall appears to be the GPU-side cost of the recompiled shader
and draw pipeline itself (shader ALU cost + per-draw overhead), with the guest
pacing producing feed bubbles on top.

Full instrumented run log attached (gds_instrument_run.zip, ~25 MB uncompressed).
Happy to capture Tracy data via --profile if that would help localize the
GPU-side hot spots.

gds_instrument_run.zip

**@⁠klim9929** on GitHub · 2026-10-07 22:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1113#issuecomment-6048408917) Follow-up 2: instrumentation result — the SynchronizeGpu() hypothesis from the previous comment is disproven. I built main (6ef4065-dirty) with a counter in CommandProcessor::SynchronizeGpu() that logs call frequency every 5 seconds, and played PPSA01325 on RX 6700 XT through CPU Plaza into the Memory Heaven level at ~5 fps: 0 calls across 4085 frames. The GDS EOP readback path (0x2f/0x06) is not hit during normal gameplay of this title, so the per-frame stall is not the full-queue drain. Revised reading of the original profile: the 53% figure for the GPU thread was CPU time (TotalProcessorTime), i.e. real work — translating PM4 → Vulkan — not blocked time. Combined with ~110 ms of 3D engine time per frame at a forced 1080p target, the wall appears to be the GPU-side cost of the recompiled shader and draw pipeline itself (shader ALU cost + per-draw overhead), with the guest pacing producing feed bubbles on top. Full instrumented run log attached (gds_instrument_run.zip, ~25 MB uncompressed). Happy to capture Tracy data via --profile if that would help localize the GPU-side hot spots. [gds_instrument_run.zip](https://github.com/user-attachments/files/33180636/gds_instrument_run.zip)
Author
Owner

@⁠Nmzik on GitHub · 2026-10-18 16:45 UTC · original

Duplicate of #1552.

Consolidating compatibility evidence for PPSA01325 in the newer report #1552. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.

**@⁠Nmzik** on GitHub · 2026-10-18 16:45 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1113#issuecomment-6252474568) Duplicate of #1552. Consolidating compatibility evidence for PPSA01325 in the newer report #1552. This older report has no posted screenshots or video in its body or comments. Its logs and discussion remain available here; this closure consolidates reports and does not mark the reported behavior as fixed.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#1113
No description provided.