# stride3d/stride architecture

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

- Interactive diagram: https://gitdiagram.com/stride3d/stride
- Repository: https://github.com/stride3d/stride

## Overview

Stride is a modular C# game engine with a visual editor and command-line project and SDK management. A user can manage SDK versions or create a project from the CLI, then work in Game Studio; at runtime, the engine provides rendering and VR capabilities. The supplied excerpts also expose editor previews, graphics profiling, and content storage. Several major subsystems are identified only by the README or source index, so their internal connections are intentionally left unspecified.

Main entry points: [`sources/launcher/Stride.Cli/Core/StrideVersionManager.cs`](https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Core/StrideVersionManager.cs) (SDK manager), [`sources/engine/Stride.Rendering/Rendering/QueryManager.cs`](https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Rendering/Rendering/QueryManager.cs) (GPU profiling), [`sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs`](https://github.com/stride3d/stride/blob/master/sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs) (Asset previews), [`sources/launcher/Stride.Cli/Program.cs`](https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Program.cs) (Stride CLI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Project creation"]
  node_cli["Stride CLI<br/>[Program.cs]"]
  node_versions["SDK manager"]
  node_templates["Project templates<br/>[Templates]"]
end

subgraph group_editor["Game Studio"]
  node_studio["Game Studio"]
  node_preview["Asset previews"]
  node_dragdrop["Editor drag-drop"]
  node_gamehost["Embedded game host<br/>[GameEngineHost.cs]"]
end

subgraph group_runtime["Engine runtime"]
  node_rendering["Rendering engine<br/>[Stride.Rendering]"]
  node_graphics["Graphics device<br/>[GraphicsDevice.cs]"]
  node_commands["Graphics commands<br/>[CommandList.cs]"]
  node_profiling["GPU profiling<br/>[QueryManager.cs]"]
  node_audio["Audio engine<br/>[AudioEngine.cs]"]
  node_vr["VR integration<br/>[OVR_CAPI.h]"]
end

subgraph group_core["Core services"]
  node_content[("Content storage<br/>[ContentStorage.cs]")]
  node_platform["Platform services<br/>[Platform.cs]"]
  node_math["Math primitives<br/>[Vector3.cs]"]
  node_yaml["YAML tokens<br/>[Key.cs]"]
  node_updater["Update engine processing"]
end

node_user(("Game maker"))
node_nuget[("Package sources")]
node_dotnet[".NET CLI"]

node_user -->|"manages projects"| node_cli
node_user -->|"opens editor"| node_studio
node_versions -->|"finds packages"| node_nuget
node_versions -->|"runs restore"| node_dotnet
node_preview -->|"hosts preview"| node_gamehost
node_profiling -->|"uses device"| node_graphics
node_profiling -->|"records queries"| node_commands

click node_cli "https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Program.cs"
click node_versions "https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Core/StrideVersionManager.cs"
click node_templates "https://github.com/stride3d/stride/tree/master/sources/engine/Stride.Assets/Templates"
click node_studio "https://github.com/stride3d/stride/blob/master/sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs"
click node_preview "https://github.com/stride3d/stride/blob/master/sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs"
click node_dragdrop "https://github.com/stride3d/stride/blob/master/sources/editor/Stride.Core.Assets.Editor/View/Behaviors/DragDrop/DragDropAdornerManager.cs"
click node_gamehost "https://github.com/stride3d/stride/blob/master/sources/presentation/Stride.Core.Presentation.Wpf/Controls/GameEngineHost.cs"
click node_rendering "https://github.com/stride3d/stride/tree/master/sources/engine/Stride.Rendering"
click node_graphics "https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Graphics/GraphicsDevice.cs"
click node_commands "https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Graphics/CommandList.cs"
click node_profiling "https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Rendering/Rendering/QueryManager.cs"
click node_audio "https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Audio/AudioEngine.cs"
click node_vr "https://github.com/stride3d/stride/blob/master/deps/OculusOVR/Include/OVR_CAPI.h"
click node_content "https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Serialization/Streaming/ContentStorage.cs"
click node_platform "https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core/Platform.cs"
click node_math "https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Mathematics/Vector3.cs"
click node_yaml "https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Yaml/Tokens/Key.cs"
click node_updater "https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.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_cli,node_versions,node_templates toneBlue
class node_studio,node_preview,node_dragdrop,node_gamehost,node_nuget toneAmber
class node_rendering,node_graphics,node_commands,node_profiling,node_audio,node_vr toneMint
class node_content,node_platform,node_math,node_yaml,node_updater toneRose
class node_user,node_dotnet toneIndigo
```

## Components

### Project creation

- [Stride CLI](https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Program.cs): `sources/launcher/Stride.Cli/Program.cs`
- [SDK manager](https://github.com/stride3d/stride/blob/master/sources/launcher/Stride.Cli/Core/StrideVersionManager.cs): `sources/launcher/Stride.Cli/Core/StrideVersionManager.cs`
- [Project templates](https://github.com/stride3d/stride/tree/master/sources/engine/Stride.Assets/Templates): `sources/engine/Stride.Assets/Templates`

### Game Studio

- [Game Studio](https://github.com/stride3d/stride/blob/master/sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs): `sources/editor/Stride.GameStudio/AssetsEditors/AssetEditorsManager.cs`
- [Asset previews](https://github.com/stride3d/stride/blob/master/sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs): `sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs`
- [Editor drag-drop](https://github.com/stride3d/stride/blob/master/sources/editor/Stride.Core.Assets.Editor/View/Behaviors/DragDrop/DragDropAdornerManager.cs): `sources/editor/Stride.Core.Assets.Editor/View/Behaviors/DragDrop/DragDropAdornerManager.cs`
- [Embedded game host](https://github.com/stride3d/stride/blob/master/sources/presentation/Stride.Core.Presentation.Wpf/Controls/GameEngineHost.cs): `sources/presentation/Stride.Core.Presentation.Wpf/Controls/GameEngineHost.cs`

### Engine runtime

- [Rendering engine](https://github.com/stride3d/stride/tree/master/sources/engine/Stride.Rendering): `sources/engine/Stride.Rendering`
- [Graphics device](https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Graphics/GraphicsDevice.cs): `sources/engine/Stride.Graphics/GraphicsDevice.cs`
- [Graphics commands](https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Graphics/CommandList.cs): `sources/engine/Stride.Graphics/CommandList.cs`
- [GPU profiling](https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Rendering/Rendering/QueryManager.cs): `sources/engine/Stride.Rendering/Rendering/QueryManager.cs`
- [Audio engine](https://github.com/stride3d/stride/blob/master/sources/engine/Stride.Audio/AudioEngine.cs): `sources/engine/Stride.Audio/AudioEngine.cs`
- [VR integration](https://github.com/stride3d/stride/blob/master/deps/OculusOVR/Include/OVR_CAPI.h): `deps/OculusOVR/Include/OVR_CAPI.h`

### Core services

- [Content storage](https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Serialization/Streaming/ContentStorage.cs): `sources/core/Stride.Core.Serialization/Streaming/ContentStorage.cs`
- [Platform services](https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core/Platform.cs): `sources/core/Stride.Core/Platform.cs`
- [Math primitives](https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Mathematics/Vector3.cs): `sources/core/Stride.Core.Mathematics/Vector3.cs`
- [YAML tokens](https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.Yaml/Tokens/Key.cs): `sources/core/Stride.Core.Yaml/Tokens/Key.cs`
- [Update engine processing](https://github.com/stride3d/stride/blob/master/sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs): `sources/core/Stride.Core.AssemblyProcessor/UpdateEngineProcessor.cs`

### Other components

- **Game maker**
- **Package sources**
- **.NET CLI**

## Connections

- Game maker → Stride CLI: manages projects (evidence: `README.md`)
- Game maker → Game Studio: opens editor (evidence: `README.md`)
- SDK manager → Package sources: finds packages (evidence: `sources/launcher/Stride.Cli/Core/StrideVersionManager.cs`)
- SDK manager → .NET CLI: runs restore (evidence: `sources/launcher/Stride.Cli/Core/StrideVersionManager.cs`)
- Asset previews → Embedded game host: hosts preview (evidence: `sources/editor/Stride.Editor/Preview/GameStudioPreviewService.cs`)
- GPU profiling → Graphics device: uses device (evidence: `sources/engine/Stride.Rendering/Rendering/QueryManager.cs`)
- GPU profiling → Graphics commands: records queries (evidence: `sources/engine/Stride.Rendering/Rendering/QueryManager.cs`)
