[Opensim-users] Scripting: 10x speed boost with C#
Henry Wills
fubat.enterprises at gmail.com
Tue Apr 26 14:19:16 UTC 2011
Found the setting, OpenSim.ini, using Diva Distro it was set to 0.1, changed
it to 0.0. I don't have many scripts out yet, so time will tell.
On Mon, Apr 25, 2011 at 4:51 PM, Justin Clark-Casey <
jjustincc at googlemail.com> wrote:
> If you don't need to limit script cpu time then there's no fundamental
> reason not to set the delay factor to 0.
>
>
> On 25/04/11 15:09, Neil Canham wrote:
>
>> It is in OpenSim.ini -
>>
>> ScriptDelayFactor = 0.0
>>
>> I wasn't aware of it until this thread - so thanks for making me aware -
>> it has speeded up a number of scripts for me -
>> of course, the delays are required in public sims where griefing might be
>> an issue, but for private installations, can
>> anyone see any reason not to set that to zero? I guess there might be
>> scripts that are 'accidentally' working by
>> relying on the delays, but other than that, no fundamental opensim
>> architectural reason?
>>
>> Neil
>>
>> On Mon, Apr 25, 2011 at 2:42 PM, Henry Wills <fubat.enterprises at gmail.com<mailto:
>> fubat.enterprises at gmail.com>> wrote:
>>
>> "... /configured all LSL scripting delays down to zero/ :)"
>>
>> Where do I find that, Justin? I'm not sure I did that on my sim.
>>
>>
>> On Sun, Apr 24, 2011 at 8:36 PM, Justin Clark-Casey <
>> jjustincc at googlemail.com <mailto:jjustincc at googlemail.com>> wrote:
>>
>> Very interesting, Jeff. The scripting engine in OpenSim transforms
>> LSL to C# before compiling it so there
>> wouldn't be a time difference due to interpretation.
>>
>> Of course, I'm presuming that you had configured all LSL scripting
>> delays down to zero :)
>>
>>
>> On 23/04/11 11:20, Jeff Kelley wrote:
>>
>> I like physics. And I like colors.
>>
>> I scripted a blackbody spectrum in LSL for a science sim. It
>> was reasonably
>> fast, 1.8s for a 400 points spectrum (380 to 780 nm) including
>> Planck's law
>> computation, CIE to RGB colorspace mapping with gamma
>> correction, display
>> with osDynamicTexture.
>>
>> That was fast, but not enough in my mind. Real-time interaction
>> should be
>> in the 1/10s range, not the second.
>>
>> So I rewrote the thing in C#. The key was to get rid of all
>> llFunctions,
>> LSL lists and string handling functions, math functions, even
>> building
>> manually the drawlist instead of calling osDraw routines.
>> Execution time is
>> now in the 0.1-0.2s range.
>>
>> Running Opensim 0.7.0.2 + MONO on a MacMini server, 2.53GHz
>> Core Duo, 4GB.
>>
>> LSL code: http://pastebin.com/MxsivsKS
>> C# code: http://pastebin.com/UR2gsnU7
>>
>> Nice!
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de <mailto:
>> Opensim-users at lists.berlios.de>
>>
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>> --
>> Justin Clark-Casey (justincc)
>> http://justincc.org/blog
>> http://twitter.com/justincc
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de <mailto:
>> Opensim-users at lists.berlios.de>
>>
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de <mailto:Opensim-users at lists.berlios.de>
>>
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>>
>>
>>
>> _______________________________________________
>> Opensim-users mailing list
>> Opensim-users at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-users
>>
>
>
> --
> Justin Clark-Casey (justincc)
> http://justincc.org/blog
> http://twitter.com/justincc
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110426/6fbc17c8/attachment.html>
More information about the Opensim-users
mailing list