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
[email protected]
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-dev