How superkeka/kytyps5-native works
KytyPS5-Native runs legally obtained PS5 game files through a compatibility emulator, translating GPU command buffers for native BC-250 execution while retaining Vulkan presentation and fallback. The principal workflow is launch/configuration, game loading and guest execution, GPU translation or rendering, then display and input. The Decky plugin adds installation, game discovery, per-game settings, patches/add-ons, and updates. Paths and broad native/fallback capabilities follow the README and tree; several runtime links are documented rather than verified from sampled implementation, so those edges cite the README.
Main entry points: emulator.cpp Emulator runtime · pm4Dispatch.cpp GPU command processing · main.cpp Emulator entry · nativePm4.cpp Native GPU backend
Components 20
Decky management
- Decky plugin
decky-plugin/main.py - Game pages
decky-plugin/src/index.tsx - Launcher
src/launcher/src/main.cpp
Emulation runtime
- Emulator entry
src/main.cpp - Run configuration
src/common/emulatorConfig.cpp - Game loader
src/loader/loadExec.cpp - Guest kernel
src/kernel/memory.cpp - Guest APIs
src/libs/libs.cpp - Emulator runtime
src/emulator.cpp
Graphics execution
- Native GPU backend
src/graphics/native_gpu/nativePm4.cpp - GPU command processing
src/graphics/guest_gpu/command_processor/pm4Dispatch.cpp - Shader recompiler
src/graphics/shader/recompiler/ShaderRecompiler.cpp - Pipeline cache
src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp - Vulkan renderer
src/graphics/host_gpu/renderer/renderContext.cpp - Presentation
src/graphics/presentation/videoOut.cpp
Platform services
- Controller input
src/libs/controller.cpp - Host services
src/common/subsystems.cpp
Other components
- Player / operator
- BC-250 GPU
- Display
Connections 22
- Player / operator → Decky plugin: manages install
README.md - Decky plugin → Game pages: opens game pages
decky-plugin/src/index.tsx - Player / operator → Launcher: selects game
README.md - Player / operator → Emulator entry: launches game
README.md - Launcher → Emulator entry: starts emulator
- Emulator entry → Run configuration: sets options
src/main.cpp - Emulator entry → Emulator runtime: starts runtime
src/main.cpp - Emulator runtime → Game loader: loads title
- Game loader → Guest kernel: maps guest memory
- Emulator runtime → Guest APIs: serves guest APIs
- Emulator runtime → GPU command processing: dispatches GPU work
- GPU command processing → Native GPU backend: translates commands
README.md - Native GPU backend → BC-250 GPU: submits native work
README.md - GPU command processing → Shader recompiler: translates shaders
- Shader recompiler → Pipeline cache: compiles modules
src/graphics/host_gpu/renderer/pipeline/pipelineCache.cpp - GPU command processing → Vulkan renderer: fallback rendering
README.md - Vulkan renderer → Pipeline cache: uses pipelines
- Native GPU backend → Presentation: provides frames
- Vulkan renderer → Presentation: provides frames
- Presentation → Display: presents frames
- Controller input → Guest APIs: supplies controller state
- Host services → Emulator runtime: initializes services