# XWUIGameGenerationDebug

A collapsible debug overlay for procedural generation runs. Its header toggles open/closed; the body shows the `seed` value with a one-click Copy button, the `algorithm` name, a `generationTime` stat (formatted ms/s and flagged red when over 100ms), and collapsible JSON trees for the generation `params` and `output` (depth-limited by `maxOutputDepth`). Use it to inspect and reproduce a generated result: push new runs through `updateData({ seed, algorithm, params, output, generationTime })`, start collapsed via the `collapsed` flag, and toggle the `showParams`/`showOutput`/`showTiming` sections.

## Basic Usage

Mounts the overlay with no data, so it renders the `Generation Debug` header and a body showing `Seed: N/A` with a Copy button and no parameter or output trees.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An expanded generation debug overlay showing the Seed N/A row with Copy button and no params or output.
```

## Dungeon Seed

A slow BSP dungeon run whose 100ms+ timing trips the red slow flag, with a deeper output tree exposing nested room bounds.

```example
file: examples/DungeonSeed.ts
html: examples/DungeonSeed.html
title: Dungeon Seed
description: A BSP dungeon pass at 184.6ms (flagged slow) with maxOutputDepth raised so nested room data is visible.
```

## Collapsed Timing

A timing-only perf chip that starts collapsed with the parameter and output sections hidden.

```example
file: examples/CollapsedTiming.ts
html: examples/CollapsedTiming.html
title: Collapsed Timing
description: A folded overlay showing only seed, algorithm, and a 12.8ms timing row with params and output disabled.
```

```api
```
