Framerate-independent gameplay loops in Three.js and WebGL
Red scene running at 60fps; blue scene running at 15fps.
Framerate-dependent gameplay loop (good for websites and small projects, because super easy to code; codepen demo):
Framerate-independent gameplay loop (vital for games with physics, networking, precise movement etc.; codepen demo):
Follow on birdapp for more three.js gamedev stuff: twitter.com/thefrontendcat
2 notes
ยท
View notes