# FrameDoctor Demo

This demo scene showcases FrameDoctor's profiler capture and AI analysis capabilities.

## What This Demo Does

The demo generates artificial performance load to simulate a real game scenario:

- **CPU Load**: Mathematical calculations that stress the CPU
- **Memory/GC Load**: String allocations that create garbage collection pressure
- **Rendering Load**: Spawns and animates multiple objects to create draw calls

## How to Use

1. Open the **FrameDoctorDemo** scene
2. Enter **Play Mode**
3. Open **Tools → FrameDoctor** from the menu bar
4. Sign in to your FrameDoctor account
5. Click **Start Capture** to begin recording profiler data
6. Let the scene run for 5-10 seconds
7. Click **Stop & Analyze** to send data for AI analysis
8. View your performance report with actionable recommendations

## Scene Setup

The demo scene contains:

- **DemoLoadGenerator**: Attach to any GameObject to generate performance load
  - Configurable CPU iterations
  - Configurable GC allocation rate and size
  - Configurable number of rendered objects

- **DemoInstructions**: Displays on-screen instructions
  - Press **H** to toggle the instruction panel

## Customizing the Demo

You can adjust the load parameters in the Inspector:

| Parameter | Description | Default |
|-----------|-------------|---------|
| CPU Iterations | Number of math operations per frame | 1000 |
| Allocations Per Frame | GC allocations created each frame | 50 |
| Allocation Size | Size of each allocation in characters | 1000 |
| Object Count | Number of cubes to spawn and animate | 100 |
| Rotation Speed | How fast objects rotate | 50 |

Higher values = more load = lower FPS = more interesting profiler data!
