# narucx/frametide architecture

> Architecture diagram of the GitHub repository narucx/frametide, 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/narucx/frametide
- Repository: https://github.com/narucx/frametide

## Overview

Frametide is an elevated Windows desktop utility for gaming-oriented system changes. Users configure reversible Windows tweaks, manage Game Boost, tune NVIDIA GPUs, perform real-session benchmarks, and run maintenance tasks through dedicated pages. Game Boost and GPU tuning have identifiable Core implementations; the benchmark engine and some UI wiring are not present in the supplied tree, so those are represented at the visible page level. Edges use README statements or SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`src/Frametide/MainWindow.xaml.cs`](https://github.com/narucx/frametide/blob/main/src/Frametide/MainWindow.xaml.cs) (Main window), [`src/Frametide/Views/GameBoostPage.xaml.cs`](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GameBoostPage.xaml.cs) (Game Boost page), [`src/Frametide.Core/Boost/GameBoost.cs`](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/GameBoost.cs) (Boost runtime), [`src/Frametide/Views/GpuPage.xaml.cs`](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GpuPage.xaml.cs) (GPU page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Desktop app"]
  node_app_entry["App startup<br/>[Program.cs]"]
  node_main_window["Main window<br/>[MainWindow.xaml.cs]"]
  node_boost_page["Game Boost page"]
  node_gpu_page["GPU page<br/>[GpuPage.xaml.cs]"]
  node_bench_page["Benchmark page"]
  node_maintenance_page["Maintenance page"]
  node_overview_page["Overview page"]
  node_tweaks_page["Tweaks page<br/>[TweaksPage.xaml.cs]"]
end

subgraph group_boost["Game Boost"]
  node_gameboost["Boost runtime<br/>[GameBoost.cs]"]
  node_boost_config["Boost settings<br/>[BoostConfig.cs]"]
  node_auto_boost["Auto detection<br/>[AutoBoost.cs]"]
  node_scanner["Game discovery<br/>[GameScanner.cs]"]
end

subgraph group_gpu["GPU tuning"]
  node_gpu_tuning["GPU tuning<br/>[GpuTuning.cs]"]
  node_gpu_profiles["GPU profiles<br/>[GpuProfiles.cs]"]
  node_gpu_tests["GPU tests<br/>[GpuTests.cs]"]
  node_nvidia["NVIDIA hardware<br/>[Nvidia.cs]"]
end

subgraph group_tweaks["Windows changes"]
  node_tweak_engine["Tweak engine<br/>[TweakEngine.cs]"]
  node_tweak_catalog["Tweak catalog<br/>[TweakCatalog.cs]"]
  node_maintenance["System maintenance<br/>[Cleanup.cs]"]
end

subgraph group_shared["Shared services"]
  node_settings[("App settings<br/>[Settings.cs]")]
  node_journal[("Change journal<br/>[Journal.cs]")]
  node_json["JSON persistence<br/>[JsonFile.cs]"]
  node_windows["Windows controls<br/>[Reg.cs]"]
end

node_user(("User"))
node_actor_bench["PresentMon"]

node_user -->|"starts"| node_app_entry
node_app_entry -.->|"opens"| node_main_window
node_main_window -.->|"offers"| node_boost_page
node_main_window -.->|"offers"| node_gpu_page
node_main_window -.->|"offers"| node_bench_page
node_main_window -.->|"offers"| node_maintenance_page
node_main_window -.->|"offers"| node_overview_page
node_main_window -.->|"offers"| node_tweaks_page
node_boost_page -->|"controls"| node_gameboost
node_boost_page -->|"edits"| node_boost_config
node_boost_page -->|"discovers games"| node_scanner
node_auto_boost -->|"triggers"| node_gameboost
node_gameboost -->|"loads settings"| node_boost_config
node_gpu_page -->|"controls"| node_gpu_tuning
node_gpu_page -->|"manages"| node_gpu_profiles
node_gpu_tuning -->|"sets hardware"| node_nvidia
node_gpu_tuning -->|"applies"| node_gpu_profiles
node_gpu_tests -->|"tests"| node_nvidia
node_bench_page -->|"uses"| node_actor_bench
node_tweaks_page -.->|"applies changes"| node_tweak_engine
node_tweak_engine -->|"loads definitions"| node_tweak_catalog
node_tweak_engine -->|"records changes"| node_journal
node_tweak_catalog -->|"uses controls"| node_windows
node_maintenance_page -.->|"runs cleanup"| node_maintenance
node_settings -->|"persists"| node_json
node_gameboost -->|"saves state"| node_json

click node_app_entry "https://github.com/narucx/frametide/blob/main/src/Frametide/Program.cs"
click node_main_window "https://github.com/narucx/frametide/blob/main/src/Frametide/MainWindow.xaml.cs"
click node_boost_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GameBoostPage.xaml.cs"
click node_gpu_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GpuPage.xaml.cs"
click node_bench_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/BenchmarkPage.xaml.cs"
click node_maintenance_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/MaintenancePage.xaml.cs"
click node_overview_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/OverviewPage.xaml.cs"
click node_tweaks_page "https://github.com/narucx/frametide/blob/main/src/Frametide/Views/TweaksPage.xaml.cs"
click node_gameboost "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/GameBoost.cs"
click node_boost_config "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/BoostConfig.cs"
click node_auto_boost "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/AutoBoost.cs"
click node_scanner "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/GameScanner.cs"
click node_gpu_tuning "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuTuning.cs"
click node_gpu_profiles "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuProfiles.cs"
click node_gpu_tests "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuTests.cs"
click node_nvidia "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Hardware/Nvidia.cs"
click node_tweak_engine "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Tweaks/TweakEngine.cs"
click node_tweak_catalog "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Tweaks/TweakCatalog.cs"
click node_maintenance "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Maintenance/Cleanup.cs"
click node_settings "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/Settings.cs"
click node_journal "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/Journal.cs"
click node_json "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/JsonFile.cs"
click node_windows "https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Windows/Reg.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_app_entry,node_main_window,node_boost_page,node_gpu_page,node_bench_page,node_maintenance_page,node_overview_page,node_tweaks_page,node_user toneBlue
class node_gameboost,node_boost_config,node_auto_boost,node_scanner toneAmber
class node_gpu_tuning,node_gpu_profiles,node_gpu_tests,node_nvidia toneMint
class node_tweak_engine,node_tweak_catalog,node_maintenance toneRose
class node_settings,node_journal,node_json,node_windows,node_actor_bench toneIndigo
```

## Components

### Desktop app

- [App startup](https://github.com/narucx/frametide/blob/main/src/Frametide/Program.cs): `src/Frametide/Program.cs`
- [Main window](https://github.com/narucx/frametide/blob/main/src/Frametide/MainWindow.xaml.cs): `src/Frametide/MainWindow.xaml.cs`
- [Game Boost page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GameBoostPage.xaml.cs): `src/Frametide/Views/GameBoostPage.xaml.cs`
- [GPU page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/GpuPage.xaml.cs): `src/Frametide/Views/GpuPage.xaml.cs`
- [Benchmark page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/BenchmarkPage.xaml.cs): `src/Frametide/Views/BenchmarkPage.xaml.cs`
- [Maintenance page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/MaintenancePage.xaml.cs): `src/Frametide/Views/MaintenancePage.xaml.cs`
- [Overview page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/OverviewPage.xaml.cs): `src/Frametide/Views/OverviewPage.xaml.cs`
- [Tweaks page](https://github.com/narucx/frametide/blob/main/src/Frametide/Views/TweaksPage.xaml.cs): `src/Frametide/Views/TweaksPage.xaml.cs`

### Game Boost

- [Boost runtime](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/GameBoost.cs): `src/Frametide.Core/Boost/GameBoost.cs`
- [Boost settings](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/BoostConfig.cs): `src/Frametide.Core/Boost/BoostConfig.cs`
- [Auto detection](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/AutoBoost.cs): `src/Frametide.Core/Boost/AutoBoost.cs`
- [Game discovery](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Boost/GameScanner.cs): `src/Frametide.Core/Boost/GameScanner.cs`

### GPU tuning

- [GPU tuning](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuTuning.cs): `src/Frametide.Core/Gpu/GpuTuning.cs`
- [GPU profiles](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuProfiles.cs): `src/Frametide.Core/Gpu/GpuProfiles.cs`
- [GPU tests](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Gpu/GpuTests.cs): `src/Frametide.Core/Gpu/GpuTests.cs`
- [NVIDIA hardware](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Hardware/Nvidia.cs): `src/Frametide.Core/Hardware/Nvidia.cs`

### Windows changes

- [Tweak engine](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Tweaks/TweakEngine.cs): `src/Frametide.Core/Tweaks/TweakEngine.cs`
- [Tweak catalog](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Tweaks/TweakCatalog.cs): `src/Frametide.Core/Tweaks/TweakCatalog.cs`
- [System maintenance](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Maintenance/Cleanup.cs): `src/Frametide.Core/Maintenance/Cleanup.cs`

### Shared services

- [App settings](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/Settings.cs): `src/Frametide.Core/Infrastructure/Settings.cs`
- [Change journal](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/Journal.cs): `src/Frametide.Core/Infrastructure/Journal.cs`
- [JSON persistence](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Infrastructure/JsonFile.cs): `src/Frametide.Core/Infrastructure/JsonFile.cs`
- [Windows controls](https://github.com/narucx/frametide/blob/main/src/Frametide.Core/Windows/Reg.cs): `src/Frametide.Core/Windows/Reg.cs`

### Other components

- **User**
- **PresentMon**

## Connections

- User → App startup: starts
- App startup → Main window: opens (evidence: `src/Frametide/MainWindow.xaml.cs`)
- Main window → Game Boost page: offers
- Main window → GPU page: offers
- Main window → Benchmark page: offers
- Main window → Maintenance page: offers
- Main window → Overview page: offers
- Main window → Tweaks page: offers
- Game Boost page → Boost runtime: controls (evidence: `src/Frametide/Views/GameBoostPage.xaml.cs`)
- Game Boost page → Boost settings: edits (evidence: `src/Frametide/Views/GameBoostPage.xaml.cs`)
- Game Boost page → Game discovery: discovers games (evidence: `src/Frametide/Views/GameBoostPage.xaml.cs`)
- Auto detection → Boost runtime: triggers (evidence: `src/Frametide/Services/BackgroundLoop.cs`)
- Boost runtime → Boost settings: loads settings (evidence: `src/Frametide.Core/Boost/GameBoost.cs`)
- GPU page → GPU tuning: controls (evidence: `src/Frametide/Views/GpuPage.xaml.cs`)
- GPU page → GPU profiles: manages (evidence: `src/Frametide/Views/GpuPage.xaml.cs`)
- GPU tuning → NVIDIA hardware: sets hardware (evidence: `src/Frametide.Core/Gpu/GpuTuning.cs`)
- GPU tuning → GPU profiles: applies (evidence: `src/Frametide.Core/Gpu/GpuTuning.cs`)
- GPU tests → NVIDIA hardware: tests (evidence: `src/Frametide.Core/Gpu/GpuTests.cs`)
- Benchmark page → PresentMon: uses (evidence: `src/Frametide/Views/BenchmarkPage.xaml.cs`)
- Tweaks page → Tweak engine: applies changes
- Tweak engine → Tweak catalog: loads definitions (evidence: `src/Frametide.Core/Tweaks/TweakEngine.cs`)
- Tweak engine → Change journal: records changes (evidence: `src/Frametide.Core/Tweaks/TweakEngine.cs`)
- Tweak catalog → Windows controls: uses controls (evidence: `src/Frametide.Core/Tweaks/TweakCatalog.cs`)
- Maintenance page → System maintenance: runs cleanup
- App settings → JSON persistence: persists (evidence: `src/Frametide.Core/Infrastructure/Settings.cs`)
- Boost runtime → JSON persistence: saves state (evidence: `src/Frametide.Core/Boost/GameBoost.cs`)
