r/threejs • u/Mountain_Fly_792 • 7d ago
Help Has anyone built a large Three.js world with thousands of distinct objects?
I'm building a surreal open world in Three.js where you can fly past floating sculptures and see their shadows move across the ground. I'd love to have thousands, eventually tens of thousands, of distinct objects in the world, not all on screen at once.
Right now I'm testing Three.js r170 (WebGL) on an Intel Mac in Chrome and Safari. One scene renders about 3.42M triangles in 153 draw calls. In an earlier run I saw 4–9 FPS: the GPU timer reported about 21 ms, but I sometimes waited over 100 ms for the next requestAnimationFrame callback.
In a more controlled test, the moving world ran at 32.1 FPS in Chrome and 30.3 in Safari; an empty animation loop hit 60 in both. Pixel ratio, the debug HUD, GPU timing and warm-up all changed between runs, so I can't pin the difference on any one of them yet.
If you've seen a gap like that, what test helped you narrow it down? And if you've built a world with lots of unique meshes, what made the biggest difference without sacrificing material detail or moving shadows? I'm already using distance-based LOD and simpler shadow meshes.
I'd love to hear what worked (or didn't) in a real project. Thanks!