stdweb icon indicating copy to clipboard operation
stdweb copied to clipboard

Example of use RequestAnimationFrame()

Open IvaOsi opened this issue 5 years ago • 1 comments

Hello! Any example of use window().request_animation_frame with specific fps (timestap)

documentation

Thanks!

IvaOsi avatar Jun 21 '19 18:06 IvaOsi

You can't really run it with a specific FPS; the interval with which it runs is determined wholly by the web browser and in most browsers will match the screen's refresh rate. If you want to run a callback with a specific interval you need to use set_timeout.

koute avatar Jun 23 '19 20:06 koute