What are your best practices for keeping Three.js scenes performant on mobile devices

Hi everyone,

I’m interested in learning more about optimizing Three.js projects for mobile devices, especially when a scene includes detailed 3D models, dynamic lighting, shadows, and animations.

A scene that runs smoothly on a desktop can sometimes struggle on mid-range phones, even when the visual complexity doesn’t seem particularly high.

I’d love to hear how you approach performance optimization in real-world projects.

A few things I’m curious about:

  • How do you decide when to reduce polygon counts versus texture resolution?

  • Do you prefer baked lighting over real-time shadows for mobile experiences?

  • Which tools or techniques do you use to identify GPU bottlenecks?

  • How do you manage model loading and memory when a scene contains multiple assets?

  • Are there any common optimization mistakes that beginners often overlook?

I’m particularly interested in practical techniques that improve performance without significantly compromising visual quality.

What has made the biggest difference in your own Three.js projects?

well
polygon count is less important than texture but is still need lower possible.
For texture try use ktx2 for better perf.

on renderer
block pixel ratio to max 2 (on iphone can be 4 !! )
renderer.setPixelRatio(Math.max(window.devicePixelRatio, 2.0));
also try antialias:false and avoid post process.
if you need post process so disable antialias.

the simple test for perf is fps count, if is too low is bad.

for loading try to load progressively use draco for glb model
( ! draco and ktx2 need to be dispose after loading or they stay in memory )

Thanks for sharing these tips! The point about texture optimization and pixel ratio is especially helpful. I think loading models progressively and keeping an eye on FPS can make a big difference, especially on mobile devices. I’ll also keep memory cleanup in mind when using Draco and KTX2, since performance issues aren’t always just about polygon count.

One correction on the pixel-ratio line: Math.max(devicePixelRatio, 2) forces every phone up to at least 2, which is the opposite of a cap. Math.min(devicePixelRatio, 2) is what keeps a high-density screen from rendering at 3 or 4. For the lighting question, bake the static lights into the textures or a lightmap and keep at most one real-time shadow caster, because a shadow map usually costs more on a mid-range phone than the extra polygons do. If the frame time is still high, check renderer.info.render.calls: merging static meshes, or a batched mesh, usually beats shaving texture size once you are already on a compressed format.

Drawcalls, garbage collection, texture size, trianglecount

<1k drawcalls
no dynamic allocation..
texture compression or max texture size ~2k
trianglecount ~<2million

Baked lighting made the biggest difference in my own tests, since real time shadows were the first thing to slow down mid range phones. I also keep textures modest and load models progressively, which keeps the first view smooth.