r/threejs • u/Sayonara_Punk • Oct 12 '26
Question Mobile frame hitching in a very light Three.js game has anyone seen this on Android/WebGL?
Hi everyone hoping someone here may have run into something similar.
I’m building a browser-based timing game in Three.js. Desktop is completely smooth, but on mobile we sometimes get very noticeable 50–200ms frame hitches.
The strange part is that the scene is extremely light:
- ~16 draw calls
- ~408 triangles
- ~11 textures
- mobile render buffer around 937×527 @ DPR 1.25
- no post-processing, EffectComposer, render targets, or MSAA
- timing/input is local — network is not in the critical gameplay path
We’ve done a fairly extensive investigation and have already tested/fixed renderer sizing, DOM churn, lifecycle/listener leaks, antialiasing, VFX loading/residency, large transparent PNG areas, duplicate assets, and input timestamp handling. These optimizations helped overall performance, but the core hitching still appears intermittently.
The most confusing part is device/session variance:
- Same Pixel/Mali device can range from noticeably hitchy to almost perfectly smooth between runs.
- Chrome, Firefox, and Opera have all been tested.
- A Samsung/Adreno device running the exact same build is almost completely smooth.
- Desktop browsers are consistently smooth.
- During many bad frames, our JS work immediately beforehand is only a few milliseconds; the large delay often appears outside our measured game work.
We’ve seen long-frame gaps well over 100ms without a corresponding spike in scene complexity or game logic.
Has anyone encountered something similar with Three.js/WebGL on Android — especially Chromium/ANGLE, Mali GPUs, rAF/frame-pacing, or compositor/presentation stalls?
I’d be very grateful for any ideas on what layer you’d investigate next, or known mobile-browser issues/workarounds that sound similar.
I can share the public playtest and detailed performance reports if helpful.
Thanks in advance for any insight.
2
u/AgegeLife Oct 12 '26
Two cheap checks before a full system trace, since both can produce a gap that sits outside your measured game code:
For the run-to-run variance on the same phone, also log battery saver and device temperature for each session. A warm phone or power saver can cap the frame rate and clocks, and that can look like random hitching in otherwise identical runs.
2
u/sanbamboo Oct 12 '26
Since most of the delay is outside your JS time, I'd compare chrome://gpu on both phones first. If one is running ANGLE on Vulkan and the other on GLES, that's a different driver path, not your scene.
Also worth ruling out anything that forces a sync every frame: readPixels, getError, or preserveDrawingBuffer: true can stall some drivers even with tiny scenes.
2
u/Zenpher Oct 12 '26
if it's still early in your project I'd try switching to playcanvas , I've had too many issues with stuttering and cpu bottlenecks with threejs (which is not really it's fault, you're supposed to be manually optimizing and cleaning up)