javascript - Limiting framerate in Three.js to increase performance, requestAnimationFrame? -


i thinking projects 60fps not totally needed. figured have more objects , things ran @ 30fps if run smoothly @ framerate. figured if edited requestanimationframe shim inside of three.js limit 30 way. wondering if there better way using three.js provided. also, give me kind of performance increase thinking. able render twice many objects @ 30fps @ 60? know difference between running things @ 30 , 60, able run @ smooth constant 30fps?

i use webglrenderer, , fall canvas if needed except projects targeting 1 specifically, , typically webgl shader projects.

what this:

function animate() {      settimeout( function() {          requestanimationframe( animate );      }, 1000 / 30 );      renderer.render();  } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -