# run

function in `@dioramajs/effects/testing`

```ts
import { run } from '@dioramajs/effects/testing'
```

Alternates tasks and frames until both settle; returns the frames drawn.

```ts
function run(driver: ManualDriver, rounds?: number): Promise<number>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `driver` | `ManualDriver` |  |
| `rounds?` | `number` |  |

Defined in [packages/effects/src/testing/gpu.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/testing/gpu.ts#L260).
