# overkilllabs3/driveclub-recomp architecture

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

- Interactive diagram: https://gitdiagram.com/overkilllabs3/driveclub-recomp
- Repository: https://github.com/overkilllabs3/driveclub-recomp

## Overview

DriveClub Recomp runs the game’s x86-64 code natively and reimplements PS4 services while translating GPU work to Vulkan. The user selects their game folders and settings in a launcher; preparation and launch lead into the runtime, whose graphics path recompiles shaders and renders through Vulkan. The repository also includes video playback, trophies and network/multiplayer services. The README documents major user-facing capabilities, but sampled source is concentrated in launcher, Vulkan pipeline and cache code, and selected networking glue; links for other runtime stages are therefore omitted where direct wiring was not shown.

Main entry points: [`src/probe.c`](https://github.com/overkilllabs3/driveclub-recomp/blob/main/src/probe.c) (Native game code), [`gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp) (Pipeline cache), [`launcher/prepare.cpp`](https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/prepare.cpp) (Game preparation), [`launcher/driveclub_launcher.cpp`](https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/driveclub_launcher.cpp) (Windows launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Setup and launch"]
  node_launcher["Windows launcher"]
  node_linux_launcher["Linux launcher<br/>[launcher_linux.cpp]"]
  node_preparation["Game preparation<br/>[prepare.cpp]"]
end

subgraph group_runtime["Game runtime"]
  node_runtime_services["Runtime services<br/>[runtime_services.c]"]
  node_game_code["Native game code<br/>[probe.c]"]
  node_avplayer["Video playback<br/>[avplayer.cpp]"]
  node_videodec["Video decoding<br/>[videodec.cpp]"]
  node_videoout["Video output<br/>[video_out.cpp]"]
end

subgraph group_graphics["Vulkan graphics"]
  node_shader_recompiler["Shader recompiler<br/>[recompiler.cpp]"]
  node_pipeline_cache["Pipeline cache"]
  node_graphics_pipeline["Graphics pipelines"]
  node_cache_storage[("Cache storage<br/>[cache_storage.cpp]")]
  node_vulkan_device["Vulkan device<br/>[vk_instance.h]"]
  node_dlss["DLSS integration"]
  node_neural_rendering["Neural rendering"]
end

subgraph group_services["System and online services"]
  node_network["Network services<br/>[net.cpp]"]
  node_online["Online and multiplayer<br/>[bbnet_glue.cpp]"]
  node_trophies["Trophies<br/>[np_trophy.cpp]"]
end

node_player(("Player"))
node_game_dumps["Game dumps"]

node_player -->|"configures and plays"| node_launcher
node_player -->|"configures and plays"| node_linux_launcher
node_game_dumps -->|"provides files"| node_preparation
node_launcher -->|"prepares game"| node_preparation
node_linux_launcher -->|"prepares game"| node_preparation
node_preparation -.->|"starts runtime"| node_game_code
node_game_code -.->|"uses services"| node_runtime_services
node_game_code -.->|"submits GPU work"| node_shader_recompiler
node_shader_recompiler -.->|"compiles shaders"| node_pipeline_cache
node_pipeline_cache -->|"creates pipelines"| node_graphics_pipeline
node_pipeline_cache -->|"loads and saves"| node_cache_storage
node_graphics_pipeline -.->|"creates Vulkan objects"| node_vulkan_device
node_game_code -.->|"requests playback"| node_avplayer
node_avplayer -.->|"decodes media"| node_videodec
node_videodec -.->|"outputs frames"| node_videoout
node_runtime_services -.->|"provides trophy services"| node_trophies
node_online -.->|"uses networking"| node_network
node_game_code -.->|"uses online features"| node_online
node_pipeline_cache -.->|"optional upscaling"| node_dlss
node_pipeline_cache -.->|"optional rendering"| node_neural_rendering

click node_launcher "https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/driveclub_launcher.cpp"
click node_linux_launcher "https://github.com/overkilllabs3/driveclub-recomp/blob/main/tools/launcher_linux.cpp"
click node_preparation "https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/prepare.cpp"
click node_runtime_services "https://github.com/overkilllabs3/driveclub-recomp/blob/main/src/runtime_services.c"
click node_game_code "https://github.com/overkilllabs3/driveclub-recomp/blob/main/src/probe.c"
click node_avplayer "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/avplayer/avplayer.cpp"
click node_videodec "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/videodec/videodec.cpp"
click node_videoout "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/videoout/video_out.cpp"
click node_shader_recompiler "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/shader_recompiler/recompiler.cpp"
click node_pipeline_cache "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp"
click node_graphics_pipeline "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp"
click node_cache_storage "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/cache_storage.cpp"
click node_vulkan_device "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_instance.h"
click node_network "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/network/net.cpp"
click node_online "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/bbnet/bbnet_glue.cpp"
click node_trophies "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/np/np_trophy.cpp"
click node_dlss "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/dlss_bridge/bbport_dlss_bridge.cpp"
click node_neural_rendering "https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/nr_bridge/bbport_nr_bridge.cpp"

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_linux_launcher,node_preparation toneBlue
class node_runtime_services,node_game_code,node_avplayer,node_videodec,node_videoout toneAmber
class node_shader_recompiler,node_pipeline_cache,node_graphics_pipeline,node_cache_storage,node_vulkan_device,node_dlss,node_neural_rendering toneMint
class node_network,node_online,node_trophies toneRose
class node_player,node_game_dumps toneIndigo
```

## Components

### Setup and launch

- [Windows launcher](https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/driveclub_launcher.cpp): `launcher/driveclub_launcher.cpp`
- [Linux launcher](https://github.com/overkilllabs3/driveclub-recomp/blob/main/tools/launcher_linux.cpp): `tools/launcher_linux.cpp`
- [Game preparation](https://github.com/overkilllabs3/driveclub-recomp/blob/main/launcher/prepare.cpp): `launcher/prepare.cpp`

### Game runtime

- [Runtime services](https://github.com/overkilllabs3/driveclub-recomp/blob/main/src/runtime_services.c): `src/runtime_services.c`
- [Native game code](https://github.com/overkilllabs3/driveclub-recomp/blob/main/src/probe.c): `src/probe.c`
- [Video playback](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/avplayer/avplayer.cpp): `gpu/shadps4/core/libraries/avplayer/avplayer.cpp`
- [Video decoding](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/videodec/videodec.cpp): `gpu/shadps4/core/libraries/videodec/videodec.cpp`
- [Video output](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/videoout/video_out.cpp): `gpu/shadps4/core/libraries/videoout/video_out.cpp`

### Vulkan graphics

- [Shader recompiler](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/shader_recompiler/recompiler.cpp): `gpu/shadps4/shader_recompiler/recompiler.cpp`
- [Pipeline cache](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`
- [Graphics pipelines](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp): `gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp`
- [Cache storage](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/cache_storage.cpp): `gpu/shadps4/video_core/cache_storage.cpp`
- [Vulkan device](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/video_core/renderer_vulkan/vk_instance.h): `gpu/shadps4/video_core/renderer_vulkan/vk_instance.h`
- [DLSS integration](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/dlss_bridge/bbport_dlss_bridge.cpp): `gpu/dlss_bridge/bbport_dlss_bridge.cpp`
- [Neural rendering](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/nr_bridge/bbport_nr_bridge.cpp): `gpu/nr_bridge/bbport_nr_bridge.cpp`

### System and online services

- [Network services](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/network/net.cpp): `gpu/shadps4/core/libraries/network/net.cpp`
- [Online and multiplayer](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/bbnet/bbnet_glue.cpp): `gpu/bbnet/bbnet_glue.cpp`
- [Trophies](https://github.com/overkilllabs3/driveclub-recomp/blob/main/gpu/shadps4/core/libraries/np/np_trophy.cpp): `gpu/shadps4/core/libraries/np/np_trophy.cpp`

### Other components

- **Player**
- **Game dumps**

## Connections

- Player → Windows launcher: configures and plays (evidence: `launcher/driveclub_launcher.cpp`)
- Player → Linux launcher: configures and plays (evidence: `README.md`)
- Game dumps → Game preparation: provides files (evidence: `README.md`)
- Windows launcher → Game preparation: prepares game (evidence: `launcher/driveclub_launcher.cpp`)
- Linux launcher → Game preparation: prepares game (evidence: `tools/launcher_linux.cpp`)
- Game preparation → Native game code: starts runtime
- Native game code → Runtime services: uses services
- Native game code → Shader recompiler: submits GPU work
- Shader recompiler → Pipeline cache: compiles shaders
- Pipeline cache → Graphics pipelines: creates pipelines (evidence: `gpu/shadps4/video_core/renderer_vulkan/vk_pipeline_cache.cpp`)
- Pipeline cache → Cache storage: loads and saves (evidence: `gpu/shadps4/video_core/cache_storage.cpp`)
- Graphics pipelines → Vulkan device: creates Vulkan objects (evidence: `gpu/shadps4/video_core/renderer_vulkan/vk_graphics_pipeline.cpp`)
- Native game code → Video playback: requests playback
- Video playback → Video decoding: decodes media
- Video decoding → Video output: outputs frames
- Runtime services → Trophies: provides trophy services
- Online and multiplayer → Network services: uses networking
- Native game code → Online and multiplayer: uses online features
- Pipeline cache → DLSS integration: optional upscaling
- Pipeline cache → Neural rendering: optional rendering
