![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The clock interface.
The clock is used by the engine core to determine frame duration and logik ticks. The engine clock is configured by the IEngineConfiguration interface.
Set the maximum frame duration. The default value is 1000 milliseconds.
SetDeltaLimit(Murl.System.Time limit)
limit | The maximum frame duration. |
Get the maximum frame duration.
Murl.System.Time GetDeltaLimit()
Set the time base factor. The delta time is multiplied by the time base factor. The default time base factor is 1.0.
SetTimeBase(Number timeBase)
timeBase | The time base factor. |
Get the time base factor.
Number GetTimeBase()
Set the averaging factor. The delta time is multiplied by the averaging factor plus the last delta time multiplied by 1 - the averaging factor. The default averaging factor is 0.1.
SetAveragingFactor(Number factor)
factor | The averaging factor. |
Get the averaging factor.
Number GetAveragingFactor()
Start the clock measurement.
Start()
Stop the clock measurement.
Stop()
Pause the logic tick measurement.
PauseLogicTicks()
Continue the logic tick measurement.
ContinueLogicTicks()
Reset the internally filtered delta value.
ResetAveraging(Murl.System.Time frameDuration, Integer numFrames)
frameDuration | The desired frame duration, or 0.0 if variable. |
numFrames | The number of subsequent frames where averaging is disabled. |
Update the clock measurement. The clock is updated every time a frame is drawn. At this point the clock measures the frame duration and calculates the logic ticks.
Update()
Reset the total running time.
ResetTotalRunningTime()
Get the total running time.
Murl.System.Time GetTotalRunningTime()
Get the current time.
Murl.System.Time GetCurrentTime()
Get the number of logic ticks per frame.
Integer GetNumberOfLogicTicksPerFrame()
Get the frame number.
Integer GetFrameNumber()
Get the logick tick number.
Integer GetLogicTickNumber()
Get the frame time.
Number GetFrameTime()
Get the logick tick time.
Number GetLogicTickTime()
Get the frame duration.
Number GetFrameDuration()
Get the logick tick duration.
Number GetLogicTickDuration()