Sets the frames per second of the canvas, which should be between the MIN_FPS and MAX_FPS. It ranges between 1 and 120, with the default target as 30. This function should not be called in the update function.
The frames per second of canvas to set.
// set fps to 60set_fps(60); Copy
// set fps to 60set_fps(60);
Sets the frames per second of the canvas, which should be between the MIN_FPS and MAX_FPS. It ranges between 1 and 120, with the default target as 30. This function should not be called in the update function.