Fast loading
For creatorsAdd-on 1.148.0+
Most of the work that makes a scene open quickly happens without you: the add-on writes each different mesh once, Build packs all of them into one compressed file, and the viewer draws every copy of a mesh together. What you control is how many different meshes and images your scene has, whether its textures are compressed, and what players look at while it loads.
What players see
Section titled “What players see”Every scene opens behind a loading screen: its title, a progress bar, then Press to start once everything is in. A click, a tap, any key or any controller button starts it. Until then the scene waits, so nothing begins without the player. The bar fills as the scene’s objects arrive, and the screen lifts only after the last mesh is in.
Reuse meshes
Section titled “Reuse meshes”Copies are free. Objects that share a mesh are one download, and the viewer draws all of them in one go. Two objects share a mesh when these match:
| Shared when these match | Ignored |
|---|---|
| The geometry: vertices, faces, material indices, the active UV layer | The object’s name |
| The shading: smooth or flat faces, sharp edges, the names of its UV and colour layers | The mesh’s name |
| Its modifiers: their types, names and whether they show in the viewport | Where the object stands, its turn and its scale |
| The names of its material slots |
So a different material name, an extra or renamed modifier, a changed smooth or sharp-edge setting, or another UV layer name makes a new mesh, even when the model looks the same.
A copy whose rotation or scale you applied (Ctrl+A) still counts as the same mesh when it matches the first one turned or stretched, to within 0.1 mm. A mirrored copy, with a negative scale applied, is a mesh of its own.
In the viewer, a copy that moves leaves its group and is drawn on its own; after it stands still for 2 seconds it rejoins. Meshes with transparent materials, skinned or shape-keyed meshes, and meshes placed only once are always drawn one by one.
Build packs the meshes
Section titled “Build packs the meshes”Build puts every different mesh, material and image in the scene into one pack file, compressed, so the browser fetches one file instead of hundreds. A mesh that is another one turned or stretched is stored once. The pack’s name changes whenever its contents do, so players never get an old one from their browser’s cache.
Some things stay in files of their own because the pack can’t hold them: rigged and animated models, and items with clips of their own, such as a gun’s fire and reload (see Moving parts).
On a furnished warehouse scene, the pack and drawing copies together cut the files a browser fetched from 540 to 28 and the download from 21.4 MB to 10.9 MB.
Join scenery that never moves
Section titled “Join scenery that never moves”Scenery made of many different pieces that never move, such as the buildings of a street, can become one object. Select the
meshes and choose Object ▸ Simulacrum ▸ Merge Static in the 3D viewport’s menu (add-on 2.2.0). The selected meshes are
replaced by one object, Scenery, that looks the same, each material kept as a slot. A mesh with tags of its own other than its
collision (a door, a barrier, a gauge), or with children, is left as it is, and the status bar names it.
Leave repeated models as copies: copies already cost nothing, and a merged object can’t be drawn as copies.
Reuse and compress images
Section titled “Reuse and compress images”Every model that uses the same image file shares one texture in the viewer. Use the same image files across your materials rather than copies of them.
Build can also compress every texture to the KTX2 format, which the player’s graphics card reads directly. A scene full of large texture images went from 2.9 GB of graphics memory to 441 MB this way, and looked the same. The files on disk are a little larger.
To turn it on, install KTX-Software 4.3 or newer from the Khronos Group, with its own installer or with its toktx tool on your
path. Build finds it and compresses from then on. Each image is compressed once and remembered, so later builds are quick.
Without it, Build keeps your PNG images.
An image that one material uses for colour and another for data, such as a normal map, stays a PNG.
Style the loading screen
Section titled “Style the loading screen”The loading screen takes its look from scene properties. Add them in Properties ▸ Scene ▸ Custom Properties, as strings.
| Property | Values | What it does |
|---|---|---|
loading.title |
text | The headline. Default: the scene’s name |
loading.subtitle |
text | A line under the headline |
loading.image |
an image’s web address, or an image file on your computer | A picture above the title |
loading.cover |
an image’s web address, or an image file on your computer | A picture that fills the screen behind the title |
loading.bg · loading.fg · loading.accent |
colours, such as #101820 |
The screen’s background, its text, and the progress bar |
loading.press |
0 |
No Press to start: the screen lifts by itself when everything is in |
loading.off |
1 |
No loading screen at all |
An image file on your computer can be a path beside the .blend, such as splash.png, or a full path. Build copies it into
the cartridge (add-on 2.2.0), so the picture shows in the built scene; Play doesn’t send it. A file the build can’t find is a
warning in Properties ▸ World ▸ Simulacrum ▸ Cartridge, not a failed build.
Keep Press to start for anything with sound: on phones and in some browsers, sound can only start after the player presses something.
Check the difference
Section titled “Check the difference”Open your published scene with &instancing=0 added to its play link. Every copy is then drawn on its own, so you can compare
how smoothly the two versions run.
Limits
Section titled “Limits”- The screen waits for every mesh. A scene doesn’t show its nearest objects first.
- The first visit is the slowest. The browser prepares the scene’s shaders the first time; a second visit, with them saved, opens faster.