trsh Posted June 30, 2016 Share Posted June 30, 2016 I want to clamp to 30 fps. Not some animation, but the whole rendering. How could I do that? Quote Link to comment Share on other sites More sharing options...
Rudrabhoj Bhati Posted June 30, 2016 Share Posted June 30, 2016 I think this might be helpful Quote Link to comment Share on other sites More sharing options...
mattstyles Posted June 30, 2016 Share Posted June 30, 2016 This might also help. It just measures elapsed time and emits a tick at almost exactly your selected FPS (by almost exactly, I mean, its as exact as raf is), the module is available on npm. I know it isnt the only one, animation-frame does the same if you want a more low level approach. Quote Link to comment Share on other sites More sharing options...
trsh Posted June 30, 2016 Author Share Posted June 30, 2016 Thanks guys. Will see into it! Quote Link to comment Share on other sites More sharing options...
d13 Posted July 1, 2016 Share Posted July 1, 2016 The Smoothie helper library has a framerate clamp feature: https://github.com/kittykatattack/smoothie To clamp the framerate, use this: smoothie.renderFps = 30; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.