glxeveloop.fps module

class glxeveloop.fps.FPS[source]

Bases: glxeveloop.properties.debug.DebugProperty

property value

The property value, store the actual speed rate of teh MainLoop, it property is use by the class Timer, and will be updated at each loop iteration.

By set that property before the MainLoop start, it impose to start with it value, and slide to the max

Note

If set the value will be clamped between min and max properties value.

Warning

That not correspond exactly to a true movies or game FPS, it correspond more about how many time 1 second is divided..

Returns

value property value. (in rate)

Return type

float or int

Raises

TypeError – if value parameter is not a float type a int type or None

property min

The min property value correspond to a imposed minimal amount of frame rate, that property is used during the set attribute of

Returns

min property value. (in rate)

Return type

float

property max

Get the Timer fps_max property value.

Returns

fps_max property value. (in fps)

Return type

float

property fps_increment

Get the Timer fps_increment property value.

Returns

fps_increment property value. (in fps)

Return type

float

property fps_min_increment

Get the smaller of step increment

The Timer fps_min_increment property value.

See Timer.set_fps_min_increment() for more information’s

Returns

fps_min_increment property value. (in rate)

Return type

float

property fps_max_increment

Get the bigger of step increment

Get the Timer fps_max_increment property value.

Returns

fps_max_increment property value. (in rate)

Return type

float