High-Performance Instanced Windmills

Inspired by a classic CodePen from @prisoner849, this demo renders 1000 windmills in a single scene using instanced meshes for minimal draw calls. Each blade features twist along its length and dynamic wobble per instance, fully mirrored in the shadow pass. Merged geometries and distance-based wobble culling keep it running insanely fast – 240 fps max, <0.1 ms CPU/GPU per frame.

Not world-changing, but a solid example of instancing and shader tricks.

See it on CodePen β†’

5 Likes

It only shows one for me, am I doing something wrong?

@dubois thanks for letting me know. You should be seeing 1000, just like this screenshot. Could you please provide some additional info to help me get to the bottom of it? Browser, OS, Device type, console errors?

1 Like

If I’m to take a guess, you’re probably clicking on the first link which points to prisoner849’s original, which was my inspiration.

My code (the 1000 windmills) are to be found at the second link, namely here.

I hope this helps!

1 Like