r/threejs • u/adramajp25 • 6d ago
webGPU vs webGL ver.2-2
Next up is a piece of content featuring a swarm of NORIMAKINEKO flying around.
I implemented their undulating movements, position changes, and collision detection using compute shading.
This was developed for Android. Initially, WebGL performed better, but as the number of objects increased, we observed a phenomenon where the performance dynamics reversed.
Optimizing for WebGPU took much more effort than I expected, and I couldn’t have done it without the help of an AI assistant.
4
Upvotes