[Opensim-dev] llSetTimerEvent accuracy / config
Michel Beauregard
gimisa at yahoo.fr
Sun Mar 20 20:45:04 UTC 2016
if its the config in opensim you want to talk about and not the accuracy of the timer event itself there is a good discussion here about that old subject for openrsim / SL :
http://was.fm/opensim/server_patches/use_timers_for_lsl_events
The mantis also reference in this web page is interesting to read.
gimisa
--------------------------------------------
En date de : Dim, 20.3.16, Jeff Kelley <opensim at pescadoo.net> a écrit :
Objet : Re: [Opensim-dev] llSetTimerEvent accuracy
À : opensim-dev at opensimulator.org
Date: dimanche 20 mars 2016 10 h 21
At 11:40 PM -0700
3/19/16, Mike Higgins wrote:
>Well, there is an OpenSim.ini parameter for
setting the minimum time
>that a timer
can ask for, and the default is 0.5 seconds.
==> MinTimerInterval =
0.05
> Then there are other fundamental limits
like the 11 times a second
>heartbeat
of
> OpenSim. This makes me suspect
that if I want accurate times, I have to time
> everything in increments of 0.0909090909
seconds.
Don't you find
the Windows numbers too perfect? It's hard to believe
in sub-microsecond accuracy. Maybe there is
a bias in my script.
integer ON;
default {
touch_start(integer n) {
ON = ! ON;
if (ON) llSetTimerEvent
(0.1);
else
llSetTimerEvent (0.0);
}
timer() {
float t =
llGetAndResetTime ();
llSay (0, (string) (1000*t));
}
}
-- Jeff
_______________________________________________
Opensim-dev mailing list
Opensim-dev at opensimulator.org
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev
More information about the Opensim-dev
mailing list