__init__(interval,
singleshot)
(Constructor)
|
|
The constructor of the vrTimer class. Actually there are 3
constructors for this class.
vrTimer() creates a timer callback object that fires repeatedly every
render frame.
vrTimer(interval) creates a timer callback object that fires
repeatedly in a defined interval.
vrTimer(interval,singleshot) creates a timer callback object that
fires in a defined interval.
CAUTION: The timer loop runs synchronous with the render loop, so if
your render speed goes down to a few frames per second the timers won't
get called more often!
- Parameters:
interval (float (64bit)) - The interval the timer should fire in seconds. 0.04 (1/25) means
25 times per seconds.
singleshot (bool) - Defines if the timer should fire only once (true) or repeatedly
(false).
- Overrides:
vrAEBase.vrAEBase.__init__
|