# felipeprado0/gow3_pc architecture

> Architecture diagram of the GitHub repository felipeprado0/gow3_pc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/felipeprado0/gow3_pc
- Repository: https://github.com/felipeprado0/gow3_pc

## Overview

This repository is a Windows PC port of God of War III Remastered: the original game executable runs natively on the CPU, while a game-specific system runtime and shadPS4-derived Vulkan core provide platform and graphics services. The main path is launcher setup and play → game preparation and patches → native execution → Vulkan command and shader translation → frame presentation. The graph also preserves documented save, input, media, menu, overlay, and upscaling capabilities. Unsampled subsystem links are shown only where the README documents them; source-level relationships are limited to the supplied index and excerpts.

Main entry points: [`gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp) (Pipeline Cache), [`launcher/gow3_launcher_win.py`](https://github.com/felipeprado0/gow3_pc/blob/main/launcher/gow3_launcher_win.py) (Launcher), [`run.py`](https://github.com/felipeprado0/gow3_pc/blob/main/run.py) (Run Entry), [`src/runtime_services.c`](https://github.com/felipeprado0/gow3_pc/blob/main/src/runtime_services.c) (Native Runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and Setup"]
  node_launcher["Launcher"]
  node_prepare["Game Preparation<br/>[prepare.py]"]
  node_patches["Game Patches<br/>[patches.py]"]
  node_entry["Run Entry<br/>[run.py]"]
end

subgraph group_runtime["Game Runtime"]
  node_game["PS4 Game Executable"]
  node_native["Native Runtime<br/>[runtime_services.c]"]
  node_hooks["Game Hooks<br/>[actor_hook.h]"]
  node_gpu_shim["GPU Shim<br/>[gow3gpu.cpp]"]
end

subgraph group_graphics["Graphics Translation"]
  node_gpu_core["GPU Command Core<br/>[liverpool.cpp]"]
  node_recompiler["Shader Recompiler<br/>[recompiler.cpp]"]
  node_pipeline["Pipeline Cache"]
  node_serialization["Pipeline Warmup"]
  node_cache[("Shader Cache Storage<br/>[cache_storage.cpp]")]
  node_scheduler["Vulkan Scheduler<br/>[vk_scheduler.h]"]
  node_renderer["Vulkan Renderer<br/>[vk_runtime.h]"]
  node_present["Frame Presentation<br/>[vk_presenter.cpp]"]
  node_upscale["Upscaling"]
end

subgraph group_support["Game Features"]
  node_saves["Save and Backup<br/>[save_backup.py]"]
  node_input["Controller and Keyboard<br/>[runtime_pad.c]"]
  node_media["Audio and Video<br/>[avplayer.cpp]"]
  node_menu["In-Game Menu<br/>[gow3_overlay.cpp]"]
  node_settings["GPU Settings"]
end

node_player(("Player"))

node_player -->|"configures"| node_launcher
node_launcher -->|"prepares game"| node_prepare
node_launcher -->|"selects patches"| node_patches
node_launcher -->|"backs up saves"| node_saves
node_player -->|"starts game"| node_entry
node_entry -->|"applies patches"| node_patches
node_entry -->|"launches executable"| node_game
node_game -->|"uses system services"| node_native
node_game -->|"issues GPU work"| node_gpu_shim
node_native -.->|"provides input"| node_input
node_native -.->|"provides media"| node_media
node_game -->|"uses game hooks"| node_hooks
node_gpu_shim -.->|"forwards GPU commands"| node_gpu_core
node_gpu_core -.->|"selects pipelines"| node_pipeline
node_pipeline -->|"requests compilation"| node_recompiler
node_pipeline -->|"starts warmup"| node_serialization
node_serialization -->|"reads pipeline keys"| node_cache
node_pipeline -.->|"loads and saves blobs"| node_cache
node_gpu_core -.->|"submits GPU work"| node_scheduler
node_scheduler -.->|"records rendering"| node_renderer
node_renderer -.->|"presents frames"| node_present
node_renderer -.->|"applies upscaling"| node_upscale
node_player -->|"opens menu"| node_menu
node_menu -->|"controls cheats"| node_hooks
node_menu -.->|"changes graphics options"| node_settings
node_player -->|"provides controls"| node_input
node_player -->|"loads and saves progress"| node_saves
node_game -->|"plays audio and video"| node_media
node_settings -->|"configures shader compilation"| node_pipeline

click node_launcher "https://github.com/felipeprado0/gow3_pc/blob/main/launcher/gow3_launcher_win.py"
click node_prepare "https://github.com/felipeprado0/gow3_pc/blob/main/scripts/prepare.py"
click node_patches "https://github.com/felipeprado0/gow3_pc/blob/main/scripts/patches.py"
click node_entry "https://github.com/felipeprado0/gow3_pc/blob/main/run.py"
click node_native "https://github.com/felipeprado0/gow3_pc/blob/main/src/runtime_services.c"
click node_hooks "https://github.com/felipeprado0/gow3_pc/blob/main/src/actor_hook.h"
click node_gpu_shim "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/gow3gpu.cpp"
click node_gpu_core "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/amdgpu/liverpool.cpp"
click node_recompiler "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/shader_recompiler/recompiler.cpp"
click node_pipeline "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp"
click node_serialization "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp"
click node_cache "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/cache_storage.cpp"
click node_scheduler "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_scheduler.h"
click node_renderer "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_runtime.h"
click node_present "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_presenter.cpp"
click node_upscale "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_temporal_upscaler.cpp"
click node_saves "https://github.com/felipeprado0/gow3_pc/blob/main/scripts/save_backup.py"
click node_input "https://github.com/felipeprado0/gow3_pc/blob/main/src/runtime_pad.c"
click node_media "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/core/libraries/avplayer/avplayer.cpp"
click node_menu "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/gow3_overlay.cpp"
click node_settings "https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/core/emulator_settings.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_prepare,node_patches,node_entry toneBlue
class node_game,node_native,node_hooks,node_gpu_shim toneAmber
class node_gpu_core,node_recompiler,node_pipeline,node_serialization,node_cache,node_scheduler,node_renderer,node_present,node_upscale toneMint
class node_saves,node_input,node_media,node_menu,node_settings toneRose
class node_player toneIndigo
```

## Components

### Launch and Setup

- [Launcher](https://github.com/felipeprado0/gow3_pc/blob/main/launcher/gow3_launcher_win.py): `launcher/gow3_launcher_win.py`
- [Game Preparation](https://github.com/felipeprado0/gow3_pc/blob/main/scripts/prepare.py): `scripts/prepare.py`
- [Game Patches](https://github.com/felipeprado0/gow3_pc/blob/main/scripts/patches.py): `scripts/patches.py`
- [Run Entry](https://github.com/felipeprado0/gow3_pc/blob/main/run.py): `run.py`

### Game Runtime

- **PS4 Game Executable**
- [Native Runtime](https://github.com/felipeprado0/gow3_pc/blob/main/src/runtime_services.c): `src/runtime_services.c`
- [Game Hooks](https://github.com/felipeprado0/gow3_pc/blob/main/src/actor_hook.h): `src/actor_hook.h`
- [GPU Shim](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/gow3gpu.cpp): `gpu/shim/gow3gpu.cpp`

### Graphics Translation

- [GPU Command Core](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/amdgpu/liverpool.cpp): `gpu/shadps4/video_core/amdgpu/liverpool.cpp`
- [Shader Recompiler](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/shader_recompiler/recompiler.cpp): `gpu/shadps4/shader_recompiler/recompiler.cpp`
- [Pipeline Cache](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`
- [Pipeline Warmup](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp`
- [Shader Cache Storage](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/cache_storage.cpp): `gpu/shadps4/video_core/cache_storage.cpp`
- [Vulkan Scheduler](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_scheduler.h): `gpu/shadps4/video_core/renderer_vulkan/vk_scheduler.h`
- [Vulkan Renderer](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_runtime.h): `gpu/shadps4/video_core/renderer_vulkan/vk_runtime.h`
- [Frame Presentation](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_presenter.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_presenter.cpp`
- [Upscaling](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_temporal_upscaler.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_temporal_upscaler.cpp`

### Game Features

- [Save and Backup](https://github.com/felipeprado0/gow3_pc/blob/main/scripts/save_backup.py): `scripts/save_backup.py`
- [Controller and Keyboard](https://github.com/felipeprado0/gow3_pc/blob/main/src/runtime_pad.c): `src/runtime_pad.c`
- [Audio and Video](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shadps4/core/libraries/avplayer/avplayer.cpp): `gpu/shadps4/core/libraries/avplayer/avplayer.cpp`
- [In-Game Menu](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/gow3_overlay.cpp): `gpu/shim/gow3_overlay.cpp`
- [GPU Settings](https://github.com/felipeprado0/gow3_pc/blob/main/gpu/shim/core/emulator_settings.h): `gpu/shim/core/emulator_settings.h`

### Other components

- **Player**

## Connections

- Player → Launcher: configures (evidence: `README.md`)
- Launcher → Game Preparation: prepares game (evidence: `launcher/gow3_launcher_win.py`)
- Launcher → Game Patches: selects patches (evidence: `launcher/gow3_launcher_win.py`)
- Launcher → Save and Backup: backs up saves (evidence: `launcher/gow3_launcher_win.py`)
- Player → Run Entry: starts game (evidence: `README.md`)
- Run Entry → Game Patches: applies patches (evidence: `run.py`)
- Run Entry → PS4 Game Executable: launches executable (evidence: `README.md`)
- PS4 Game Executable → Native Runtime: uses system services (evidence: `README.md`)
- PS4 Game Executable → GPU Shim: issues GPU work (evidence: `README.md`)
- Native Runtime → Controller and Keyboard: provides input
- Native Runtime → Audio and Video: provides media
- PS4 Game Executable → Game Hooks: uses game hooks (evidence: `README.md`)
- GPU Shim → GPU Command Core: forwards GPU commands
- GPU Command Core → Pipeline Cache: selects pipelines
- Pipeline Cache → Shader Recompiler: requests compilation (evidence: `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`)
- Pipeline Cache → Pipeline Warmup: starts warmup
- Pipeline Warmup → Shader Cache Storage: reads pipeline keys (evidence: `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_serialization.cpp`)
- Pipeline Cache → Shader Cache Storage: loads and saves blobs
- GPU Command Core → Vulkan Scheduler: submits GPU work
- Vulkan Scheduler → Vulkan Renderer: records rendering
- Vulkan Renderer → Frame Presentation: presents frames
- Vulkan Renderer → Upscaling: applies upscaling
- Player → In-Game Menu: opens menu (evidence: `README.md`)
- In-Game Menu → Game Hooks: controls cheats (evidence: `gpu/shim/gow3_overlay.cpp`)
- In-Game Menu → GPU Settings: changes graphics options
- Player → Controller and Keyboard: provides controls (evidence: `README.md`)
- Player → Save and Backup: loads and saves progress (evidence: `README.md`)
- PS4 Game Executable → Audio and Video: plays audio and video (evidence: `README.md`)
- GPU Settings → Pipeline Cache: configures shader compilation (evidence: `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`)
