float llGetRegionTimeDilation()
Returns the
time dilation of the current
region (
simulator) as a
float between 0 and 1.
Time dilation occurs when the
sim can't keep up with the processing of its
tasks even after reducing the time allocated to
scripts and
physics.
Avatars will experience this as slowed-down (slow-motion, "bullet-time") movement.
If you have many scripts running in a sim (or
physical objects), it would be considerate to pause them when the time dilation drops below a certain threshold (0.8 - 0.9).
See
llGetRegionFPS and
lag.
This is a script that will automatically pause all scripts once dilation drops below 0.65:
This article wasn't helpful for you? Maybe the
related article at the LSL Portal is able to bring enlightenment.
Functions |
Simulator |
Time |
Lag