stdweb
stdweb copied to clipboard
Example of use RequestAnimationFrame()
Hello! Any example of use window().request_animation_frame with specific fps (timestap)
Thanks!
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
.