How supermedo/bloodborne_pc works
Bloodborne for Windows runs the game’s x86-64 code natively and translates its graphics to Vulkan. The user workflow is to choose a game folder in the launcher, configure options, and start the game; runtime code loads the game, supplies PlayStation-compatible services, and renders it. The graph also preserves documented launcher, input, online, cache, and graphics-enhancement capabilities. Source evidence is uneven: launcher imports and selected GPU/cache relationships are indexed, while several runtime connections are shown only at the README level or remain unverified.
Main entry points: bbport_launcher_win.py Windows launcher · runtime.c Native game code · vk_pipeline_cache.cpp Pipeline management · vk_presenter.cpp Presentation and output
Components 24
Launcher and setup
- Windows launcher
launcher/bbport_launcher_win.py - Game preparation
scripts/prepare.py - Mods and patches
scripts/mods.py - Patch handling
scripts/patches.py
Native game runtime
- Native game code
src/runtime.c - Compatibility services
src/runtime_services.c - Controller and input
src/runtime_pad.c
Graphics translation
- GPU integration
gpu/bbgpu.h - GPU command processing
gpu/shadps4/video_core/amdgpu/liverpool.cpp - Shader translation
gpu/shadps4/shader_recompiler/frontend/decode.cpp - Shader IR
gpu/shadps4/shader_recompiler/ir/program.cpp - SPIR-V emission
gpu/shadps4/shader_recompiler/backend/spirv/emit_spirv.cpp - Pipeline management
gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Shader cache storage
gpu/shadps4/video_core/cache_storage.cpp - Vulkan device
gpu/shadps4/video_core/renderer_vulkan/vk_instance.h - GPU scheduling
gpu/shadps4/video_core/renderer_vulkan/vk_scheduler.h
Display and enhancements
- Presentation and output
gpu/shadps4/video_core/renderer_vulkan/vk_presenter.cpp - Upscaling and frame generation
gpu/shadps4/video_core/renderer_vulkan/vk_fsr4.cpp - DLSS integration
gpu/dlss_bridge/bbport_dlss_bridge.cpp
Game services
- Online play
gpu/bbnet/thd/thd_session.cpp - In-game settings overlay
gpu/shim/bbport_overlay.cpp
Other components
- Player
- shadNet service
- Vulkan runtime
Connections 22
- Player → Windows launcher: configures and starts
- Windows launcher → Game preparation: uses preparation
launcher/bbport_launcher_win.py - Windows launcher → Mods and patches: loads mods
launcher/bbport_launcher_win.py - Windows launcher → Patch handling: uses patches
launcher/bbport_launcher_win.py - Windows launcher → Native game code: launches game
- Native game code → Compatibility services: uses services
- Native game code → Controller and input: reads controls
- Native game code → GPU integration: submits graphics
- GPU integration → GPU command processing: dispatches GPU work
- GPU command processing → Pipeline management: requests pipelines
- Pipeline management → Shader translation: decodes shaders
gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Shader translation → Shader IR: builds IR
- Shader IR → SPIR-V emission: emits SPIR-V
- Pipeline management → Shader cache storage: loads and saves
- Pipeline management → Vulkan device: creates pipelines
gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Vulkan device → Vulkan runtime: uses API
- GPU scheduling → Vulkan device: submits commands
- GPU scheduling → Presentation and output: presents frames
- Presentation and output → Upscaling and frame generation: supports enhancement
- Presentation and output → DLSS integration: supports DLSS
- Online play → shadNet service: connects online
- Player → In-game settings overlay: opens settings