optimize
Speeds up an open Three.js game page by measuring frame time, testing runtime switches that reduce frame cost without changing visuals, writing game-runtime.json, and running the project's final test.
Instructions
Speeds up the open page: measures the frame time (no perf needed first), tries the @paprika3d/three-runtime switches, keeps those that help without changing the picture, writes game-runtime.json, and ends with the final test of game-tests.json when the project has one. It is for a frame a reply reports over budget, or a user who asks about performance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| game | No | The name the game was opened under with the `open` tool, to act on ("main" by default; a subagent uses its own). | |
| switches | No |