-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Option FPS Limit
Ryc O'Chet edited this page Feb 1, 2018
·
1 revision
- NOTE: This documentation is for Velocity v2.
This is a global option only, set via Velocity.defaults.fpsLimit
. This allows you to change the maximum number of times a second that Velocity will update animations.
It must be set to a factor of 60, and by default it is 60. It is possible to set it higher although browsers may not actually respect that. Values of 15 or 30 will be the most use to mobile devices.
Velocity.defaults.fpsLimit = 30; // Half the FPS