MasatoMakino / threejs-shader-materials

Collection of shader materials for three.js
MIT License
333 stars 27 forks source link

Remove requestAnimationFrame on material. #1

Closed MasatoMakino closed 4 years ago

MasatoMakino commented 5 years ago

Multiple execution of requestAnimationFrame adversely affects performance.

see : https://stackoverflow.com/questions/45931008/use-arrow-function-as-method-passed-to-requestanimationframe https://jsperf.com/single-raf-draw-calls-vs-multiple-raf-draw-calls

MasatoMakino commented 4 years ago

fixed a5ab703d455297c1aead2e8d12d7a0510616cdf7