How hayatog/iss_pc works
This repository is a native PC port of inFAMOUS Second Son: the game’s CPU code runs natively, PS4 system services are reimplemented, and GPU work is translated to Vulkan. The user-facing path is configuring and launching the game, then reaching gameplay; the Qt launcher also manages saves and settings. The graph preserves the documented shader fixes and graphics features. Several runtime links are documented only at a high level; source-level detail is limited to the supplied excerpts and SOURCE INDEX.
Main entry points: vk_pipeline_cache.cpp Pipeline compilation · app.py Qt launcher · probe.c Native game code · tlggpu.cpp GPU shim
Components 24
Launcher and saves
- Qt launcher
port/launcher/qt/app.py - Classic launcher
port/launcher/infamous_launcher.py - Save manager
port/launcher/savemanager.py - Run configuration
port/run.py - Logs and support report
port/launcher/qt/report.py
Native game runtime
- Native game code
port/src/probe.c - Runtime services API
port/src/runtime.h
GPU translation and rendering
- GPU command handling
port/gpu/shadps4/video_core/amdgpu/liverpool.cpp - Shader decoding
port/gpu/shadps4/shader_recompiler/frontend/decode.cpp - Shader IR and passes
port/gpu/shadps4/shader_recompiler/ir/program.cpp - SPIR-V emission
port/gpu/shadps4/shader_recompiler/backend/spirv/emit_spirv.cpp - Pipeline compilation
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Graphics pipelines
port/gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp - GPU scheduling
port/gpu/shadps4/video_core/renderer_vulkan/vk_scheduler.h - Texture cache
port/gpu/shadps4/video_core/texture_cache/texture_cache.cpp - Vulkan device
port/gpu/shadps4/video_core/renderer_vulkan/vk_instance.h
PS4 services and controls
- Runtime service implementations
port/src/runtime_services.c - GPU shim
port/gpu/shim/tlggpu.cpp - Emulator settings
port/gpu/shim/core/emulator_settings.h - Backport toggles
port/gpu/shadps4/common/backports.h
Cache and diagnostics
- Shader cache storage
port/gpu/shadps4/video_core/cache_storage.cpp - Pipeline persistence and warm-up
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp
Other components
- Player
- Player-owned game files
Connections 25
- Player → Qt launcher: configures and launches
README.md - Player → Classic launcher: can launch
README.md - Qt launcher → Run configuration: starts game
port/launcher/qt/app.py - Classic launcher → Run configuration: starts game
port/launcher/infamous_launcher.py - Qt launcher → Save manager: manages saves
port/launcher/savemanager.py - Player → Player-owned game files: provides own copy
README.md - Player-owned game files → Native game code: supplies game code
README.md - Native game code → Runtime services API: uses runtime API
port/src/probe.c - Native game code → GPU shim: uses GPU interface
port/src/probe.c - Runtime service implementations → Runtime services API: implements services
port/src/runtime_services.c - Runtime service implementations → GPU shim: uses GPU interface
port/src/runtime_services.c - GPU shim → GPU command handling: submits GPU work
- GPU command handling → Shader decoding: dispatches shaders
- Shader decoding → Shader IR and passes: translates instructions
- Shader IR and passes → SPIR-V emission: emits SPIR-V
- Pipeline compilation → SPIR-V emission: compiles shaders
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Pipeline compilation → Graphics pipelines: builds graphics pipelines
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Pipeline compilation → Shader cache storage: loads and saves cache
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Pipeline persistence and warm-up → Shader cache storage: reads and writes blobs
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp - Graphics pipelines → Vulkan device: creates pipelines
port/gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp - GPU scheduling → Vulkan device: records GPU work
- Texture cache → GPU scheduling: schedules tile work
- Emulator settings → Pipeline compilation: configures compilation
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Backport toggles → Pipeline compilation: controls shader fixes
port/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp - Player → Logs and support report: requests support report
README.md