Draft, 29 November 2026: practice to be tried and revised. The budgets below are starting points; those marked "unverified" are common practice not yet checked against a source, and all are to be replaced by the browser's own measurements on a headset.
A world has two deadlines. The first is every frame: in a headset the picture must be drawn many times a second, twice (once per eye), on a phone-class chip, and a late frame is felt, not just seen. The second is arrival: how long a visitor waits between choosing your world and being able to move in it. The browser protects both (it never lets loading delay a frame, and it builds the parts nearest the visitor first), but it can only share out what the world asks for.
Design for the headset
- Budget for a standalone headset, and let the desktop be the easy case. Why: a Quest draws two views at once on a mobile chip, at a frame rate the visitor's comfort depends on. A world that runs smoothly there runs smoothly everywhere; the reverse is not true.
- Measure on the headset, early and often. Why: the desktop hides almost every cost that matters in a headset: the second eye, the mobile chip, the heat that slows it after ten minutes.
The frame
| What | Starting budget for what can be seen at once | Why |
|---|---|---|
| Triangles | Several hundred thousand; under about a million (unverified) | Each is drawn twice, once per eye |
| Separate objects drawn | A few hundred (unverified) | Each costs a fixed overhead on the chip, however small it is; copies of one design are cheaper than different shapes |
| Lights that cast shadows | One, the sun, plus very few others | Each shadow-casting light redraws the scene from its own view; set castsShadow: false on the rest |
| Live windows through portals or mirrors | One or two in view | Each draws another view of a world, per eye |
| See-through surfaces stacked in view | Few layers: glass, smoke, foliage | Every layer is drawn over the ones behind it; mobile chips pay for each pixel again |
- Spend detail where people look and reach. Fine shapes on what is within a few metres; plainer shapes and fewer parts in the distance. Why: a distant tower drawn with as many triangles as the table in front of you spends the budget on pixels nobody can resolve. State the detail a part needs with
detailBySize, and let its recipe readdetailLevel(0 the finest) to spend fewer pieces at the coarser builds; the browser picks the build (Construction: detail by size). - Use designs and copies for repeated things. Six lanterns from one design, a forest from a few trees. Why: the browser builds a design once and draws its copies together, which is far cheaper than many different shapes.
- Keep moving physical bodies few. A handful of things that tumble and collide at once, not a hundred. Why: physics runs every step on the visitor's machine and, in a shared world, on the server for everyone.
What crosses the wire
- Prefer description to data. A world travels as a description, kilobytes of recipes the visitor's machine builds into shapes and textures, rather than megabytes of meshes (Procedural or mesh). Why: the network is the slowest part of arriving. A recipe for a stone wall is a few lines; its mesh and texture would be many thousands of times larger.
- Keep the files the arrival needs small, and the rest separate. Cut a large world into files at whole places, so the place around the arrival can be fetched and built first. Why: the browser reads each file as it comes and builds the nearest parts first; in measured runs, the first part of a small world was on screen in about 30 to 40 ms and the whole of it in a quarter to half a second.
- Share what others share. Using a published design that other worlds also use means a visitor who has it already downloads nothing. Why: files are kept by their content, so a file two worlds share is fetched once.
Time to arrive
- Aim for the place around the arrival to be ready within a second, and the whole world within a few. Why: under a second the visitor stays in the flow of what they were doing; beyond that the wait shows. The browser counts a world as ready when everything within about 30 m of the arrival is built.
- Keep painted textures modest. Paint at the detail the eye can see from the distance a surface is seen from. Why: in one measured scene, painting textures was nearly all of the time spent building it on the visitor's machine. Shapes are cheap to build; fine painted detail is not.
- Plan for a slow connection and a slow machine. Test your world as a first visitor, with nothing cached, on a headset. Why: your own machine has everything cached and a fast link; your visitors arrive cold.
Open questions
- The budgets themselves, measured by the browser on a headset, to replace the starting figures here.
- Whether the browser reports a world's costs to its designer (triangles in view, build time, file sizes) as a tool beside the world.
← Scale, arrivals and comfort | Guide contents | Text people can read →