Change font size
It is currently Wed May 22, 2013 1:58 am

Forum rules


Image
. please keep questions related to an OpenSimulator and OSgrid nature.



Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Changing llSetTimerEvent limitations
PostPosted: Mon May 28, 2012 1:44 pm 

Joined: Fri Apr 13, 2012 1:19 am
Posts: 23
Is there a simulator ini setting to allow timer events to happen more often than once every 0.5 seconds?

When I set llSetTimerEvent to less than about 0.5 seconds in a script in OpenSim, the timer() events are never less than 0.5 seconds apart.

Linden posts on the SL forums (http://community.secondlife.com/t5/LSL-Scripting/quot-on-mouselook-quot/m-p/768291#M545) suggest that you might be able to get a timer() event every 0.02 seconds (based on a server frame rate of 45/second). But in practice I have never seen timer() events in SL happen more often than one every 0.2 seconds.

On my OpenSim Simulator, llGetRegionFPS() reports 53.5, suggesting I should be able to get a timer() event even more often (once every 0.0188 seconds as opposed to once every 0.0222 seconds). Yeah, that is an ideal calculation but I would at least like to get the 0.2 second behavior that I get from SL.


Top
 Profile  
 
 Post subject: Re: Changing llSetTimerEvent limitations
PostPosted: Mon May 28, 2012 3:16 pm 
OSG Elite
User avatar

Joined: Thu Dec 11, 2008 7:51 am
Posts: 391
Location: England UK
I do believe it is this (in the XEngine section):
Code:
    ; Sets the multiplier for the scripting delays
    ScriptDelayFactor = 1.0

Setting to 0.5 would give a delay of 0.25 seconds, setting to 0.1 would give a delay of 0.05 seconds etc.

Do be careful though as fast timers have been known to make XEngine explode ;-)

Also, do bear in mind that if you are creating scripts using fast timers that you plan on giving away/using on other people's sims that they will either have to adjust this setting themselves or they won't run correctly.


ETA: The delay was hard coded into opensim quite a while back. It was found that multiple AOs on a region using fast timers did make XEngine explode and so the delay was written in. Since then hardware has come a long way so it may be ok if you have superfastrapidhardcore hardware to run on. Although trying it will give you the answer :)

_________________
"...And then one day you'll find, ten years have got behind you, no one told you when to run, you missed the starting gun"
~Pink Floyd


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net