# aeka0/overlord architecture

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

- Interactive diagram: https://gitdiagram.com/aeka0/overlord
- Repository: https://github.com/aeka0/overlord

## Overview

Overlord is a VR mod that adapts the Modern Warfare 2 Campaign Remastered client for tracked, stereoscopic play. The principal workflow is to launch the game with the VR client, acquire headset/controller input, adapt campaign interactions, and render the result for the headset. The graph also includes the desktop launcher, runtime diagnostics, and documented interaction and comfort features. Some links describe README-level capabilities; unsampled implementation details are not asserted.

Main entry points: [`src/client/component/vr/engine_stereo_renderer.cpp`](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_renderer.cpp) (Stereo renderer), [`src/client/component/vr/gameplay/equipment_runtime.cpp`](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/equipment_runtime.cpp) (Weapon and equipment handling), [`src/launcher-ui/src/App.tsx`](https://github.com/aeka0/overlord/blob/main/src/launcher-ui/src/App.tsx) (Launcher UI), [`src/client/main.cpp`](https://github.com/aeka0/overlord/blob/main/src/client/main.cpp) (Client entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and setup"]
  node_launcher["Launcher UI<br/>[App.tsx]"]
  node_settings["Settings and languages<br/>[useSettings.ts]"]
  node_launch_services["Launch services<br/>[services.cpp]"]
end

subgraph group_runtime["VR runtime"]
  node_client_entry["Client entry<br/>[main.cpp]"]
  node_components["Component loader"]
  node_game["Game client<br/>[game.hpp]"]
  node_controllers["Controller tracking"]
end

subgraph group_gameplay["Campaign adaptations"]
  node_gameplay["Weapon and equipment handling"]
  node_reload["Physical reloading"]
  node_world_interactions["World interactions"]
  node_story["Campaign adaptations"]
  node_comfort["Comfort and assistance<br/>[aim_assist.cpp]"]
end

subgraph group_render["Rendering and diagnostics"]
  node_stereo_renderer["Stereo renderer"]
  node_stereo_owner["Stereo render owner"]
  node_gpu_census["GPU census"]
  node_execution["Stereo execution"]
  node_output_merger["Output merger"]
  node_backend_probe["Backend probe"]
  node_diagnostics["VR diagnostics<br/>[diagnostics.cpp]"]
  node_surface_storage["Scene surface storage"]
end

node_player(("Player"))
node_steamvr["SteamVR runtime"]
node_headset["VR headset"]

node_player -->|"configures and launches"| node_launcher
node_launcher -->|"edits settings"| node_settings
node_launcher -.->|"requests launch"| node_launch_services
node_launch_services -.->|"starts client"| node_client_entry
node_client_entry -->|"loads components"| node_components
node_client_entry -->|"initializes game"| node_game
node_player -->|"uses runtime"| node_steamvr
node_steamvr -->|"provides tracking"| node_controllers
node_steamvr -->|"drives headset"| node_headset
node_controllers -.->|"drives interactions"| node_gameplay
node_game -->|"supplies campaign logic"| node_gameplay
node_gameplay -->|"adapts weapon handling"| node_reload
node_gameplay -->|"adapts equipment"| node_world_interactions
node_gameplay -->|"adapts story sequences"| node_story
node_settings -->|"configures options"| node_comfort
node_game -->|"renders campaign"| node_stereo_renderer
node_stereo_renderer -->|"coordinates stereo pass"| node_stereo_owner
node_stereo_renderer -->|"probes backend"| node_backend_probe
node_stereo_renderer -->|"uses execution"| node_execution
node_stereo_renderer -->|"checks bindings"| node_output_merger
node_stereo_owner -->|"uses census"| node_gpu_census
node_gpu_census -->|"uses backend probe"| node_backend_probe
node_stereo_owner -->|"records diagnostics"| node_diagnostics
node_components -->|"registers component"| node_surface_storage
node_stereo_renderer -->|"presents stereo view"| node_headset

click node_launcher "https://github.com/aeka0/overlord/blob/main/src/launcher-ui/src/App.tsx"
click node_settings "https://github.com/aeka0/overlord/blob/main/src/launcher-ui/src/useSettings.ts"
click node_launch_services "https://github.com/aeka0/overlord/blob/main/src/client/launcher/services.cpp"
click node_client_entry "https://github.com/aeka0/overlord/blob/main/src/client/main.cpp"
click node_components "https://github.com/aeka0/overlord/blob/main/src/client/loader/component_loader.hpp"
click node_game "https://github.com/aeka0/overlord/blob/main/src/client/game/game.hpp"
click node_controllers "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/controller_component.cpp"
click node_gameplay "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/equipment_runtime.cpp"
click node_reload "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/break_action_runtime.cpp"
click node_world_interactions "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/grenade_runtime.cpp"
click node_story "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/campaign/scripted_sequences.cpp"
click node_comfort "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/aim_assist.cpp"
click node_stereo_renderer "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_renderer.cpp"
click node_stereo_owner "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_owner_pass.cpp"
click node_gpu_census "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_gpu_census.cpp"
click node_execution "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_execution.hpp"
click node_output_merger "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_output_merger.hpp"
click node_backend_probe "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_backend_probe.hpp"
click node_diagnostics "https://github.com/aeka0/overlord/blob/main/src/client/component/vr/diagnostics.cpp"
click node_surface_storage "https://github.com/aeka0/overlord/blob/main/src/client/component/scene_surface_storage.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_settings,node_launch_services toneBlue
class node_client_entry,node_components,node_game,node_controllers toneAmber
class node_gameplay,node_reload,node_world_interactions,node_story,node_comfort toneMint
class node_stereo_renderer,node_stereo_owner,node_gpu_census,node_execution,node_output_merger,node_backend_probe,node_diagnostics,node_surface_storage toneRose
class node_player,node_steamvr,node_headset toneIndigo
```

## Components

### Launch and setup

- [Launcher UI](https://github.com/aeka0/overlord/blob/main/src/launcher-ui/src/App.tsx): `src/launcher-ui/src/App.tsx`
- [Settings and languages](https://github.com/aeka0/overlord/blob/main/src/launcher-ui/src/useSettings.ts): `src/launcher-ui/src/useSettings.ts`
- [Launch services](https://github.com/aeka0/overlord/blob/main/src/client/launcher/services.cpp): `src/client/launcher/services.cpp`

### VR runtime

- [Client entry](https://github.com/aeka0/overlord/blob/main/src/client/main.cpp): `src/client/main.cpp`
- [Component loader](https://github.com/aeka0/overlord/blob/main/src/client/loader/component_loader.hpp): `src/client/loader/component_loader.hpp`
- [Game client](https://github.com/aeka0/overlord/blob/main/src/client/game/game.hpp): `src/client/game/game.hpp`
- [Controller tracking](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/controller_component.cpp): `src/client/component/vr/gameplay/controller_component.cpp`

### Campaign adaptations

- [Weapon and equipment handling](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/equipment_runtime.cpp): `src/client/component/vr/gameplay/equipment_runtime.cpp`
- [Physical reloading](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/break_action_runtime.cpp): `src/client/component/vr/gameplay/break_action_runtime.cpp`
- [World interactions](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/grenade_runtime.cpp): `src/client/component/vr/gameplay/grenade_runtime.cpp`
- [Campaign adaptations](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/campaign/scripted_sequences.cpp): `src/client/component/vr/gameplay/campaign/scripted_sequences.cpp`
- [Comfort and assistance](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/gameplay/aim_assist.cpp): `src/client/component/vr/gameplay/aim_assist.cpp`

### Rendering and diagnostics

- [Stereo renderer](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_renderer.cpp): `src/client/component/vr/engine_stereo_renderer.cpp`
- [Stereo render owner](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_owner_pass.cpp): `src/client/component/vr/engine_stereo_owner_pass.cpp`
- [GPU census](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_gpu_census.cpp): `src/client/component/vr/engine_stereo_gpu_census.cpp`
- [Stereo execution](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_execution.hpp): `src/client/component/vr/engine_stereo_execution.hpp`
- [Output merger](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_stereo_output_merger.hpp): `src/client/component/vr/engine_stereo_output_merger.hpp`
- [Backend probe](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/engine_backend_probe.hpp): `src/client/component/vr/engine_backend_probe.hpp`
- [VR diagnostics](https://github.com/aeka0/overlord/blob/main/src/client/component/vr/diagnostics.cpp): `src/client/component/vr/diagnostics.cpp`
- [Scene surface storage](https://github.com/aeka0/overlord/blob/main/src/client/component/scene_surface_storage.cpp): `src/client/component/scene_surface_storage.cpp`

### Other components

- **Player**
- **SteamVR runtime**
- **VR headset**

## Connections

- Player → Launcher UI: configures and launches (evidence: `README.md`)
- Launcher UI → Settings and languages: edits settings (evidence: `src/launcher-ui/src/App.tsx`)
- Launcher UI → Launch services: requests launch
- Launch services → Client entry: starts client
- Client entry → Component loader: loads components (evidence: `src/client/main.cpp`)
- Client entry → Game client: initializes game (evidence: `src/client/main.cpp`)
- Player → SteamVR runtime: uses runtime (evidence: `README.md`)
- SteamVR runtime → Controller tracking: provides tracking (evidence: `README.md`)
- SteamVR runtime → VR headset: drives headset (evidence: `README.md`)
- Controller tracking → Weapon and equipment handling: drives interactions
- Game client → Weapon and equipment handling: supplies campaign logic (evidence: `README.md`)
- Weapon and equipment handling → Physical reloading: adapts weapon handling (evidence: `README.md`)
- Weapon and equipment handling → World interactions: adapts equipment (evidence: `README.md`)
- Weapon and equipment handling → Campaign adaptations: adapts story sequences (evidence: `README.md`)
- Settings and languages → Comfort and assistance: configures options (evidence: `README.md`)
- Game client → Stereo renderer: renders campaign (evidence: `README.md`)
- Stereo renderer → Stereo render owner: coordinates stereo pass (evidence: `src/client/component/vr/engine_stereo_renderer.cpp`)
- Stereo renderer → Backend probe: probes backend (evidence: `src/client/component/vr/engine_stereo_renderer.cpp`)
- Stereo renderer → Stereo execution: uses execution (evidence: `src/client/component/vr/engine_stereo_renderer.cpp`)
- Stereo renderer → Output merger: checks bindings (evidence: `src/client/component/vr/engine_stereo_renderer.cpp`)
- Stereo render owner → GPU census: uses census (evidence: `src/client/component/vr/engine_stereo_owner_pass.cpp`)
- GPU census → Backend probe: uses backend probe (evidence: `src/client/component/vr/engine_stereo_gpu_census.cpp`)
- Stereo render owner → VR diagnostics: records diagnostics (evidence: `src/client/component/vr/engine_stereo_owner_pass.cpp`)
- Component loader → Scene surface storage: registers component (evidence: `src/client/component/scene_surface_storage.cpp`)
- Stereo renderer → VR headset: presents stereo view (evidence: `README.md`)
