Functions with info about the screen
gamvas. | Functions with info about the screen |
Variables | |
frameLimit | Sets the maximum of rendertime in seconds until a frame is skipped. |
Functions | |
getLastFrameLength | Returns the time elapsed since the last call to render a frame. |
getFPS | Returns the current frames per second. |
frameLimit: 0.1
Sets the maximum of rendertime in seconds until a frame is skipped. To prevent hickups on performance bottlenecks. So if you want to ensure a minimur of 30 frames per second you would set it to 1/30 = 0.033, but it is not recommended to set this value to low or your game will not work on slower systems.
0.1
Sets the maximum of rendertime in seconds until a frame is skipped.
frameLimit: 0.1
Returns the time elapsed since the last call to render a frame.
getLastFrameLength: function()
Returns the current frames per second.
getFPS: function()