How the function FrameRate() figures out speed

edited June 2016 in p5.js

Hello!
I'm using p5.js to animate some sprites. I changed the frame rate to 30fps. However the animation seems to be slower than 30fps. Does anyone know what's going on and help point me in the right direction to fix this?

Tagged:

Answers

  • Answer ✓

    frameRate will attempt to render at the rate you set; but it's by no means guaranteed: if the browser can't cope (because it's overloaded or running on slower hardware) it will render at a slower rate...

Sign In or Register to comment.