# Limits and budgets

PERFORMANCE BUDGET
- Fewer elements = faster loading for everyone. Merge walls/floors into long cubes (the generators already do). Aim for a few hundred to a couple of thousand elements per scene.
- Reuse the same model URL many times rather than many different models; players download each file once.
- Keep models small (under ~5 MB each; avatars under 10 MB) and textures at 2048 px or less.
- Point lights are expensive: a handful per area, not one per torch in a long corridor.
- Animate with m-attr-anim (sent once, played on every client) instead of scripts that change attributes many times per second.
- Avoid fetch() in hot paths; the scene waits on it.
- check_mml flags common problems.

| Limit | Value |
|---|---|
| Triangles per project | 1,000,000 (models, avatars and shapes combined; single assets under 150,000) |
| Avatars | GLB on the UE5 Mannequin skeleton, up to 50,000 triangles, textures up to 2048 px, 1–2 m tall, under 20 MB, at most 12 meshes |
| Models | https .glb with textures inside; aim under ~5 MB each, textures 2048 px or less |
| Scene size | up to 3 MB of scene code; elements in the low thousands; split big worlds with m-frame |
| Script updates | changes faster than every ~200 ms stutter; use m-attr-anim or CaveKit.moveTo |
| Saved game state | CaveKit.save: up to 20 keys per scene, 100 KB each |
