Learning on Web Dev Open is free for all.

Immersive Web > Geometry, assets, and not shipping 40MBTen thousand of something, one draw call
Phase 07Geometry, assets, and not shipping 40MB347 of 434

Ten thousand of something, one draw call

InstancedMesh, a per-instance matrix, and the frustum culling gotcha that makes your instances vanish.

Build45 minAI implements

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Render thousands of objects in a single draw call
  • Set per-instance transforms and colours
  • Diagnose instances that disappear at the edge of the frame
Ask the community

Loading…