|
FPS | ||
FramesPerSecond = FPS() | ||
Parameters: NONE | ||
Returns: FramesPerSecond = The current numbers frame drawn this past second |
||
The FPS function returns the current number of frame redraws (sync's) that were drawn over the past second. FACTS: * Note: Each call to the FPS() function performs part of the Frames Per second calculation. Therefore, you should NOT call FPS() more than once per update (per sync). As that would result in the incorrect (inflated) frames per second values being returned. Mini Tutorial: This example sets the Max frames per second to 20, then displays PB's limit as well as the current FPS rate.
This example would output.
|
Related Info: | GetFPS | SetFPS | Timer : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |