ASTRO BOT (PPSA21564): scene renders black — content-level rendering (presentation works) #3961

Closed
opened 2026-10-11 19:56:04 +00:00 by StarMrGamer · 4 comments
StarMrGamer commented 2026-10-11 19:56:04 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-11T19:56:04Z.


Prerequisite / how to reproduce. On current main the title stops earlier — at the sound assertion tracked in #3480. This rendering problem starts where that fix ends: apply the sound-init fix (PR #3959, or the equivalent — path resolution must expand %VAR% environment variables so the sound config is found, with ASOBI_ROOT set) and the game then boots to the frame loop described below. Without it, nothing renders because start-up never gets there.

Summary. ASTRO BOT (PPSA21564) now boots past audio initialisation and runs for minutes, but the visible frame is mostly black: only a small UI element draws (a grey panel with red bars) at ~5 FPS. Presentation itself is working — frames reach the window — so this is a content-level rendering problem.

What is proven.

  • Presentation is fine: the title writes flip packets directly into GPU command buffers (no sceVideoOutSubmitFlip calls), AnyPS5's AGC driver processes them, and the window is updated every frame. With zero-copy import failures forcing CPU copies, the frame rate is ~5 FPS (tracked separately).
  • Start-up gets far: Vulkan init, ~996 shaders compiled, materials and resources load, then the frame loop runs.
  • Setting the raytracing switch (APS5_RAYTRACING=miss) gets the game further through initialisation, but the visible output is unchanged — so the black frame is not only the ray-traced path.

What we ruled out. Presentation/flip handling, shader compilation failures (shaders compile and cache), and missing pipeline creation. The remaining suspects are content-level: whether the scene's draws execute at all, and if they do, why their outputs are black (vertex fetch, render-target formats, descriptor bindings, or a feature the shaders need that we do not provide yet).

What would help. Anyone who has traced per-frame draw counts or shader-output correctness on this title, or knows how its renderer selects between ray-traced and non-ray-traced paths at start-up. We can share specific disassembly windows and trace logs.

Related: #3480 (the start-up assertion that previously stopped the game — fixed).

Could not verify Windows/macOS.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5804622934 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3961). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-11T19:56:04Z. --- **Prerequisite / how to reproduce.** On current `main` the title stops earlier — at the sound assertion tracked in #3480. This rendering problem starts where that fix ends: apply the sound-init fix (PR #3959, or the equivalent — path resolution must expand `%VAR%` environment variables so the sound config is found, with `ASOBI_ROOT` set) and the game then boots to the frame loop described below. Without it, nothing renders because start-up never gets there. **Summary.** ASTRO BOT (PPSA21564) now boots past audio initialisation and runs for minutes, but the visible frame is mostly black: only a small UI element draws (a grey panel with red bars) at ~5 FPS. Presentation itself is working — frames reach the window — so this is a content-level rendering problem. **What is proven.** - Presentation is fine: the title writes flip packets directly into GPU command buffers (no `sceVideoOutSubmitFlip` calls), AnyPS5's AGC driver processes them, and the window is updated every frame. With zero-copy import failures forcing CPU copies, the frame rate is ~5 FPS (tracked separately). - Start-up gets far: Vulkan init, ~996 shaders compiled, materials and resources load, then the frame loop runs. - Setting the raytracing switch (`APS5_RAYTRACING=miss`) gets the game further through initialisation, but the visible output is unchanged — so the black frame is not only the ray-traced path. **What we ruled out.** Presentation/flip handling, shader compilation failures (shaders compile and cache), and missing pipeline creation. The remaining suspects are content-level: whether the scene's draws execute at all, and if they do, why their outputs are black (vertex fetch, render-target formats, descriptor bindings, or a feature the shaders need that we do not provide yet). **What would help.** Anyone who has traced per-frame draw counts or shader-output correctness on this title, or knows how its renderer selects between ray-traced and non-ray-traced paths at start-up. We can share specific disassembly windows and trace logs. Related: #3480 (the start-up assertion that previously stopped the game — fixed). Could not verify Windows/macOS. Written with AI assistance.
ak800i commented 2026-10-11 20:21:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ak800i on 2026-10-11T20:21:05Z.


@StarMrGamer would you be willing to share the eli file with me?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113328402 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3961#issuecomment-6113328402). Originally posted by [ak800i](https://github.com/ak800i) on 2026-10-11T20:21:05Z. --- @StarMrGamer would you be willing to share the eli file with me?
Kikoarl commented 2026-10-11 21:20:59 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-11T21:20:59Z.


Here is the exact root-cause diagnosis and solution from our empirical investigation on Linux (RTX 5060 Ti):

1. Why it runs at ~5 FPS (CPU-GPU copies)

Astro Bot requests three large guest memory allocations of 4483, 3200, and 4608 MiB (12,291 MiB total). The default APS5_HOST_IMPORT_MIB budget on main is 6144 MiB (#2809). Once exceeded, UDMABUF zero-copy host import is refused and the driver falls back to CPU copies every frame.

  • Fix: Launch with APS5_HOST_IMPORT_MIB=16384. This restores zero-copy mappings and immediate frame rate gains.

2. Why the 3D scene renders black (Content-level rendering failure)

The rendering loop reaches compute shader 0x500798d00 (the postprocessing / depth-downsample pass).

  • The title binds 0x53a500000 (960x540) as a depth target.
  • Next, compute shader 0x500798d00 attempts to access that identical physical surface as a storage image in guest format 36 (B10G11R11_UFLOAT / Vulkan format 122 VK_FORMAT_B10G11R11_UFLOAT_PACK32).
  • On plain origin/main, core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:832 rejects storage image access to depth surfaces, failing the compute pass that resolves the frame hierarchy.
  • Fix: Applying PR #425 (feat(agc): depth surfaces read as textures and storage images) together with the format 122 relaxation in storageFits (DepthSurface.cpp) allows 0x500798d00 to process all mip levels (1920x1080 down to 30x16).

With those two in place, the black frame disappears and full 3D rendering / title sequences display stably (tested 670+ frames rendered at 14+ FPS).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6113897796 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3961#issuecomment-6113897796). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-11T21:20:59Z. --- Here is the exact root-cause diagnosis and solution from our empirical investigation on Linux (RTX 5060 Ti): ### 1. Why it runs at ~5 FPS (CPU-GPU copies) Astro Bot requests three large guest memory allocations of 4483, 3200, and 4608 MiB (12,291 MiB total). The default `APS5_HOST_IMPORT_MIB` budget on `main` is 6144 MiB (#2809). Once exceeded, UDMABUF zero-copy host import is refused and the driver falls back to CPU copies every frame. - **Fix:** Launch with `APS5_HOST_IMPORT_MIB=16384`. This restores zero-copy mappings and immediate frame rate gains. ### 2. Why the 3D scene renders black (Content-level rendering failure) The rendering loop reaches compute shader `0x500798d00` (the postprocessing / depth-downsample pass). - The title binds `0x53a500000` (960x540) as a depth target. - Next, compute shader `0x500798d00` attempts to access that identical physical surface as a **storage image** in guest format 36 (`B10G11R11_UFLOAT` / Vulkan format 122 `VK_FORMAT_B10G11R11_UFLOAT_PACK32`). - On plain `origin/main`, `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:832` rejects storage image access to depth surfaces, failing the compute pass that resolves the frame hierarchy. - **Fix:** Applying **PR #425** (`feat(agc): depth surfaces read as textures and storage images`) together with the format 122 relaxation in `storageFits` (`DepthSurface.cpp`) allows `0x500798d00` to process all mip levels (1920x1080 down to 30x16). With those two in place, the black frame disappears and full 3D rendering / title sequences display stably (tested 670+ frames rendered at 14+ FPS).
oneandonlydean commented 2026-10-11 23:29:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:29:36Z.


Closing as a duplicate of #1409: the black scene is compute shader 0x500798d00 being refused storage access to depth surface 0x53a500000 (comment above). #425 is the fix; the frame rate is #2809.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115117677 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3961#issuecomment-6115117677). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-11T23:29:36Z. --- Closing as a duplicate of #1409: the black scene is compute shader `0x500798d00` being refused storage access to depth surface `0x53a500000` (comment above). #425 is the fix; the frame rate is #2809.
StarMrGamer commented 2026-10-12 03:31:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by StarMrGamer on 2026-10-12T03:31:08Z.


Just to check what you mean by "the eli file" — if that is the game's ELF/binary: I can not share that, sorry. It comes from the game dump and is copyrighted, so it can not be redistributed. If you meant something else (a log file, trace, or the diagnosis notes), those I can share — just say which.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6117233467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3961#issuecomment-6117233467). Originally posted by [StarMrGamer](https://github.com/StarMrGamer) on 2026-10-12T03:31:08Z. --- Just to check what you mean by "the eli file" — if that is the game's ELF/binary: I can not share that, sorry. It comes from the game dump and is copyrighted, so it can not be redistributed. If you meant something else (a log file, trace, or the diagnosis notes), those I can share — just say which. Written with AI assistance.
Sign in to join this conversation.
No labels
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.

Reference
boykopovar/AnyPS5#3961
No description provided.