Glossary · Performance

Instancing

In short

Instancing is a technique in which the graphics card draws many copies of the same mesh and material in a single call, with position, rotation and scale (and optionally colour) differing per copy. It saves draw calls [1].

How it works

Instead of sending 200 separate posts to the GPU, one post is sent once together with a list of 200 transforms. In three.js the tool is InstancedMesh; according to the documentation it is meant for many objects with the same geometry and material but different world transforms, and it reduces the number of draw calls [1].

The file format supports it too: the glTF extension EXT_mesh_gpu_instancing describes rendering many copies of one mesh with a small number of draw calls, with its own position, rotation and scale per copy [2].

Typical candidates

  • treads and balusters of a staircase;
  • posts, boards and panels of a fence;
  • louvres of a pergola or brise-soleil;
  • screws, nuts and washers in technical assemblies;
  • grandstand seats, wall panels.

Limits

All copies share geometry and material. If one part should look or be shaped differently, it has to leave the group or be driven by extra per-instance data. After changing positions, the list must be explicitly flagged as updated [1].

From our library

  • The spiral stair configurator draws treads, tread pans, hubs and balusters as instanced meshes. When a visitor changes the height, only the number of copies changes.
  • The disc harrow model uses EXT_mesh_gpu_instancing directly in the GLB file.
  • The carport configurator also uses instancing.

All three are example configurators with fictional products. The parametric model entry explains why this helps parametric geometry in particular.

Related terms

  • Draw calls

    A draw call is a single drawing command sent to the graphics card, such as "draw this mesh with this material". Each call carries overhead, so a few large calls are generally faster than many small ones.

  • Parametric model

    A parametric model is a 3D model whose geometry is calculated from parameters and rules, such as width, height or number of steps. Change a value and the shape is rebuilt rather than edited by hand.

  • glTF extensions

    glTF extensions add capabilities such as compression, further material properties or instancing; they are listed in a public Khronos Group registry. Examples: KHR_materials_transmission for glass and EXT_mesh_gpu_instancing for many copies of one mesh.

  • three.js

    three.js is an open-source JavaScript library for 3D graphics in the browser. It handles the scene, camera, lighting, materials and model loading, and renders through WebGL or WebGPU.

Examples to try

Example configurator · fictional product

Spiral stair configurator

Plan a spiral stair: enter floor height and opening, treads and rotation are calculated, choose diameter, direction, railing and materials – with an example check and a PDF enquiry.

Stairs & access · Dimensions and sizes · Materials and finishes · Options, modules and accessories

Example configurator · fictional product

Folding short-disc harrow

A folding short-disc harrow: working width 4, 5 or 6 m, rear roller, working and transport position, with tractor and dimensions – and a working run.

Industrial cells & machines · Dimensions and sizes · Options, modules and accessories · Opening and mechanism

Example configurator · fictional product

Carport configurator

A carport: single or double, width, depth and clearance height, timber, steel or aluminium, roof shape, walls and storage room – with dimensions and the structure.

Pergolas, patio roofs & glass rooms · Dimensions and sizes · Colours · Materials and finishes

Sources

  1. three.js docs: InstancedMesh
  2. Khronos Group: EXT_mesh_gpu_instancing (glTF extension)

← All terms in the glossary