default
tksdl
tksdltksdl.FPSgetAverage() : float - Get average FPS rate (Hz)
getCurrent() : float - Get current FPS (in Hz, extrapolated from last frame)
getLimit() : int - Query current FPS limit
getMax() : float - Query maximum FPS rate
getNumFramesRendered() - Query total number of frames rendered
getPrecision() : float - Return current precision.
getReal() : float - Return real interpolated frames per second
getTickBuffer() : int - Query current maximum number of ticks to catch up
getTickInterval() : float - Query current tick interval
getTotalTime() : int - Get total time (millisec)
reset() - Reset FPS counters.
setLimit(int limit) - Set FPS limit (in Hz)
setMax(float max) - Set maximum FPS rate (Hz).
setTickBuffer(int size) - Set the maximum number of ticks to catch up to if the rendering is too slow.
setTickInterval(float interval) - Set desired tick interval in millisec. Method getAverage | |||||
Get average FPS rate (Hz) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getCurrent | |||||
Get current FPS (in Hz, extrapolated from last frame) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getLimit | |||||
Query current FPS limit | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getMax | |||||
Query maximum FPS rate | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getNumFramesRendered | |||
Query total number of frames rendered | |||
Signature | |||
|
Method getPrecision | |||||
Return current precision. | |||||
Signature | |||||
| |||||
Returns | |||||
| |||||
Description | |||||
This can be used to determine the deviation of the current FPS rate from the desired one (tickInterval). A value > 1 means that the rendering is slower than the desired rate, a value < 1 means that it is faster. |
Method getReal | |||||
Return real interpolated frames per second | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getTickBuffer | |||||
Query current maximum number of ticks to catch up | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getTickInterval | |||||
Query current tick interval | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getTotalTime | |||||
Get total time (millisec) | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method reset | |||
Reset FPS counters. | |||
Signature | |||
|
Method setLimit | |||||
Set FPS limit (in Hz) | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This can be used to prevent the application from redrawing too often and thus can help to save CPU/GPU resources. |
Method setMax | |||||
Set maximum FPS rate (Hz). | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This affects the getPrecision() method |
Method setTickBuffer | |||||
Set the maximum number of ticks to catch up to if the rendering is too slow. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
Mostly useful for constant timeframe physics. |
Method setTickInterval | |||||
Set desired tick interval in millisec. | |||||
Signature | |||||
| |||||
Arguments | |||||
| |||||
Description | |||||
This affects the return value of the getPrecision() method. It also determines how often the tick() signal callback is invoked. |
| Project Modules: | tksdl |
| Project Classes: | AudioDevice , AudioSample , Cursor , FPS , Joystick , Key , Mouse , SamplePlayer , SDL , Viewport |
| Project Functions: | MIDINoteToFrequency |
| All Namespaces: | default , ui |
| All Projects: | core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54