# blueheisenberg/scskiller architecture

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

- Interactive diagram: https://gitdiagram.com/blueheisenberg/scskiller
- Repository: https://github.com/blueheisenberg/scskiller

## Overview

SCSKiller is a Windows app and CLI that finds supported games, derives shader pipelines from game files and optional recordings, then warms the GPU driver cache before play. Its main orchestration lives in the Core app service; the repository also includes session recording, community shader data, game-store integrations, and UI/CLI entry points. README-described workflow links are cited to the README; internal links use indexed source references. Some subsystems are represented at directory level because their implementation was not sampled.

Main entry points: [`src/SCSKiller.Core/App/ScsKiller.cs`](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/ScsKiller.cs) (Core orchestration), [`src/SCSKiller.App/App.xaml.cs`](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.App/App.xaml.cs) (Desktop UI), [`src/SCSKiller.Cli/Program.cs`](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Cli/Program.cs) (CLI), [`src/SCSKiller.Core/Games/GameFiles.cs`](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/GameFiles.cs) (Game file discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry points"]
  node_desktop["Desktop UI<br/>[App.xaml.cs]"]
  node_cli["CLI<br/>[Program.cs]"]
end

subgraph group_game["Games and discovery"]
  node_stores["Game stores<br/>[SteamSource.cs]"]
  node_gamefiles["Game file discovery<br/>[GameFiles.cs]"]
  node_readers["Engine readers<br/>[CarvedReader.cs]"]
  node_redreader["REDengine reader<br/>[RedEngineReader.cs]"]
  node_reereader["RE Engine reader<br/>[ReEngineReader.cs]"]
  node_storelaunch["Store launch<br/>[StoreLaunch.cs]"]
end

subgraph group_compile["Planning and warming"]
  node_planning["Pipeline planning<br/>[Planner.cs]"]
  node_middleware["Middleware analysis<br/>[Middleware.cs]"]
  node_warmer["Pipeline warmer<br/>[Warmer.cs]"]
end

subgraph group_support["Recording and community"]
  node_proxy["Recorder proxy<br/>[proxy.cpp]"]
  node_session["Session analysis<br/>[FrameLog.cs]"]
  node_community["Community shaders<br/>[Community.cs]"]
  node_account["Account services<br/>[Account.cs]"]
end

subgraph group_platform["App state and GPU"]
  node_core["Core orchestration<br/>[ScsKiller.cs]"]
  node_gpu["GPU backends<br/>[GpuBackends.cs]"]
  node_cache[("Driver cache<br/>[GameCaches.cs]")]
  node_appstore[("Local app state<br/>[AppStore.cs]")]
end

node_user(("Player"))

node_user -->|"uses"| node_desktop
node_user -->|"runs commands"| node_cli
node_desktop -->|"controls"| node_core
node_cli -->|"opens service"| node_core
node_core -->|"scans stores"| node_stores
node_core -->|"locates files"| node_gamefiles
node_gamefiles -->|"supplies game files"| node_readers
node_core -->|"indexes engines"| node_redreader
node_core -->|"indexes engines"| node_reereader
node_core -->|"builds plans"| node_planning
node_core -->|"checks middleware"| node_middleware
node_user -->|"queues compile"| node_core
node_core -->|"starts warm"| node_warmer
node_warmer -->|"compiles pipelines"| node_gpu
node_gpu -->|"populates cache"| node_cache
node_user -->|"plays game"| node_storelaunch
node_user -->|"records session"| node_proxy
node_proxy -->|"records frame times"| node_session
node_core -->|"uses shader data"| node_community
node_community -->|"requires supporter access"| node_account
node_core -->|"persists state"| node_appstore
node_desktop -->|"shows session results"| node_session

click node_desktop "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.App/App.xaml.cs"
click node_cli "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Cli/Program.cs"
click node_core "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/ScsKiller.cs"
click node_stores "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/SteamSource.cs"
click node_gamefiles "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/GameFiles.cs"
click node_readers "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Carved/CarvedReader.cs"
click node_redreader "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/RedEngine/RedEngineReader.cs"
click node_reereader "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/ReEngine/ReEngineReader.cs"
click node_planning "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Planning/Planner.cs"
click node_middleware "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Planning/Middleware.cs"
click node_warmer "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Warming/Warmer.cs"
click node_gpu "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Vendors/GpuBackends.cs"
click node_cache "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/GameCaches.cs"
click node_proxy "https://github.com/blueheisenberg/scskiller/blob/main/proxy/proxy.cpp"
click node_session "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/FrameLog.cs"
click node_community "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/Community.cs"
click node_account "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/Account.cs"
click node_appstore "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/AppStore.cs"
click node_storelaunch "https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/StoreLaunch.cs"

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_desktop,node_cli toneBlue
class node_stores,node_gamefiles,node_readers,node_redreader,node_reereader,node_storelaunch toneAmber
class node_planning,node_middleware,node_warmer toneMint
class node_proxy,node_session,node_community,node_account toneRose
class node_core,node_gpu,node_cache,node_appstore,node_user toneIndigo
```

## Components

### User entry points

- [Desktop UI](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.App/App.xaml.cs): `src/SCSKiller.App/App.xaml.cs`
- [CLI](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Cli/Program.cs): `src/SCSKiller.Cli/Program.cs`

### Games and discovery

- [Game stores](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/SteamSource.cs): `src/SCSKiller.Core/Games/SteamSource.cs`
- [Game file discovery](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/GameFiles.cs): `src/SCSKiller.Core/Games/GameFiles.cs`
- [Engine readers](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Carved/CarvedReader.cs): `src/SCSKiller.Core/Carved/CarvedReader.cs`
- [REDengine reader](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/RedEngine/RedEngineReader.cs): `src/SCSKiller.Core/RedEngine/RedEngineReader.cs`
- [RE Engine reader](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/ReEngine/ReEngineReader.cs): `src/SCSKiller.Core/ReEngine/ReEngineReader.cs`
- [Store launch](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Games/StoreLaunch.cs): `src/SCSKiller.Core/Games/StoreLaunch.cs`

### Planning and warming

- [Pipeline planning](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Planning/Planner.cs): `src/SCSKiller.Core/Planning/Planner.cs`
- [Middleware analysis](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Planning/Middleware.cs): `src/SCSKiller.Core/Planning/Middleware.cs`
- [Pipeline warmer](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Warming/Warmer.cs): `src/SCSKiller.Core/Warming/Warmer.cs`

### Recording and community

- [Recorder proxy](https://github.com/blueheisenberg/scskiller/blob/main/proxy/proxy.cpp): `proxy/proxy.cpp`
- [Session analysis](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/FrameLog.cs): `src/SCSKiller.Core/App/FrameLog.cs`
- [Community shaders](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/Community.cs): `src/SCSKiller.Core/App/Community.cs`
- [Account services](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/Account.cs): `src/SCSKiller.Core/App/Account.cs`

### App state and GPU

- [Core orchestration](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/ScsKiller.cs): `src/SCSKiller.Core/App/ScsKiller.cs`
- [GPU backends](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/Vendors/GpuBackends.cs): `src/SCSKiller.Core/Vendors/GpuBackends.cs`
- [Driver cache](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/GameCaches.cs): `src/SCSKiller.Core/App/GameCaches.cs`
- [Local app state](https://github.com/blueheisenberg/scskiller/blob/main/src/SCSKiller.Core/App/AppStore.cs): `src/SCSKiller.Core/App/AppStore.cs`

### Other components

- **Player**

## Connections

- Player → Desktop UI: uses
- Player → CLI: runs commands
- Desktop UI → Core orchestration: controls (evidence: `src/SCSKiller.App/App.xaml.cs`)
- CLI → Core orchestration: opens service (evidence: `src/SCSKiller.Cli/Program.cs`)
- Core orchestration → Game stores: scans stores (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Core orchestration → Game file discovery: locates files (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Game file discovery → Engine readers: supplies game files (evidence: `src/SCSKiller.Core/Carved/CarvedReader.cs`)
- Core orchestration → REDengine reader: indexes engines (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Core orchestration → RE Engine reader: indexes engines (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Core orchestration → Pipeline planning: builds plans (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Core orchestration → Middleware analysis: checks middleware (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Player → Core orchestration: queues compile
- Core orchestration → Pipeline warmer: starts warm (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Pipeline warmer → GPU backends: compiles pipelines (evidence: `src/SCSKiller.Core/Warming/Warmer.cs`)
- GPU backends → Driver cache: populates cache
- Player → Store launch: plays game
- Player → Recorder proxy: records session
- Recorder proxy → Session analysis: records frame times
- Core orchestration → Community shaders: uses shader data (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Community shaders → Account services: requires supporter access
- Core orchestration → Local app state: persists state (evidence: `src/SCSKiller.Core/App/ScsKiller.cs`)
- Desktop UI → Session analysis: shows session results
