How mattias800/prosper works
prosper is a user-space PS5 compatibility layer: guest x86-64 code runs natively, while the project loads and links game modules, reimplements system interfaces, and translates AGC/PM4 graphics and RDNA2 shaders to Vulkan. The main user-to-result route is supplying a game dump, booting it in the SDL frontend, executing guest work, and presenting rendered frames. The README documents loader and HLE responsibilities, but their implementation files are largely absent from the supplied tree; GPU and frontend links are limited to relationships shown by the README or source index.
Main entry points: main.cpp App startup and loop · loader SELF/ELF loader and linker · hle System library reimplementation · gpu_execute.hpp GPU command execution
Components 18
Boot and compatibility
- SELF/ELF loader and linker
prosper/src/loader - System library reimplementation
prosper/src/hle - HLE service dispatch
prosper/src/hle/service/hle_service.cpp - Host compatibility
prosper/src/host
GPU translation
- AGC/PM4 processing
prosper/src/gpu/pm4 - GPU command execution
prosper/src/gpu/execute/gpu_execute.hpp - Shader resource contract
prosper/src/gpu/resources/shader_resources.hpp - RDNA2 to SPIR-V
prosper/src/gpu/recompiler - Storage image lowering
prosper/src/gpu/recompiler/ir/lower/image_storage_routes.cpp
Rendering and runtime
- Live Vulkan renderer
prosper/frontends/shared/live/live_renderer.cpp - Frame presentation
prosper/frontends/shared/present/present_blit.cpp - Audio output
prosper/frontends/audio_sdl3/audio_sink_sdl3.cpp - Video decoding
prosper/frontends/video_mf/media_foundation_backend.cpp - Performance capture
prosper/src/diagnostics/perf/perf_ledger.hpp
Desktop frontend
- App startup and loop
prosper/frontends/prosper-app/main.cpp - Game library paths
prosper/frontends/prosper-app/game_path.hpp - Controller input
prosper/src/input/pad.hpp
Other components
- Game dump user
Connections 19
- Game dump user → SELF/ELF loader and linker: supplies dump
- SELF/ELF loader and linker → System library reimplementation: resolves imports
- System library reimplementation → HLE service dispatch: dispatches services
- System library reimplementation → Host compatibility: uses host facilities
- Game dump user → App startup and loop: starts frontend
- App startup and loop → Game library paths: uses game paths
prosper/frontends/prosper-app/main.cpp - App startup and loop → SELF/ELF loader and linker: boots guest
prosper/frontends/prosper-app/main.cpp - App startup and loop → Controller input: accepts input
prosper/frontends/prosper-app/main.cpp - SELF/ELF loader and linker → AGC/PM4 processing: submits GPU work
- AGC/PM4 processing → GPU command execution: decodes commands
- GPU command execution → RDNA2 to SPIR-V: recompiles shaders
- RDNA2 to SPIR-V → Shader resource contract: uses resource contract
prosper/src/gpu/recompiler/ir/lower/image_storage_routes.cpp - Storage image lowering → Shader resource contract: checks bindings
prosper/src/gpu/recompiler/ir/lower/image_storage_routes.cpp - GPU command execution → Live Vulkan renderer: renders guest work
- Live Vulkan renderer → Frame presentation: hands off frames
- App startup and loop → Frame presentation: presents frames
prosper/frontends/prosper-app/main.cpp - App startup and loop → Audio output: configures audio
- App startup and loop → Video decoding: integrates video
- App startup and loop → Performance capture: records performance
prosper/frontends/prosper-app/main.cpp