Note: Spline is constantly improving and many optimizations are made over time. It is likely that some of the suggestions here won't be needed in the future.
To keep the load times and performance fast and efficient, follow these suggestions when exporting and embedding your designs:
🪛 Reduce the number of polygons
In Spline, all objects are geometries formed from triangular polygons. Two triangles form a square (quad). The less the number of polygons, the fastest it will be rendered/loaded on the screen.
- Usually, smoother objects have higher amounts of polygons which increases load time.
- On parametric objects (like the sphere, cube, cylinder, etc). You can control the number of ‘Sides’. You can reduce the sides to increase performance.
- When working with smooth subdivision objects.
- Avoid using more than 3 subdivision levels unless you really need them. Most objects look good with only 1 or 2 subdivision levels.
- Avoid increasing the base subdivisions unless you need to. This button will ‘bake’ or apply the subdivision and you won't be able to return to the original version.
- If you are importing objects from other software or libraries make sure you use an optimized and lower polygon version.
✂️ Reduce the number of objects & keep materials simple
Having lots of objects will increase the loading times and also reduce the performance (more objects = more polygons, more materials, etc).
- Delete objects that aren’t visible (like inside another object, or behind other objects). If you think people won't be seeing these objects in the final experience, you can delete them.
- Avoid adding images/textures to your materials if possible (images, especially big ones, add more time to load).
- Use simple lighting. We recommend working with less than 3 lights per scene. Too many lights can reduce the performance of the scene.
- Try to keep the materials simple, don’t use too many layers if not necessary.
- Post-processing effects can reduce performance (especially if you activate many effects at the same time).