Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008267opensim[REGION] Scripting Enginepublic2017-11-15 14:362017-11-27 08:17
Assigned To 
Statuspatch includedResolutionopen 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0008267: Make all standard LL-Function delays configurable
DescriptionFor purpose of debugging and generally having more control over the simulation behavior I wrote a patch to allow for reading overrides to the hardcoded delays of the LL-Functions that have them.

Also cleared up the previously long list of variables by putting them in a dictionary.

Before anyone starts with this, it's for debugging and special use-cases only, it is no excuse for bad lsl code and should never be a requirement for proper script execution.

Tested compiled binary with llSetPos delay of 0 and default 200 and verified override is working. Not all functions have been tested, reasonable assumption that if one works and is read correctly the rest should be too. Some functions due to being heavy on execution may exhibit no measurable change in execution delays.

Tested on mono 5.4.0, older versions may exhibit different behavior when delays are lowered.

Testing has shown that depending on SimFPS lower delays can work in some cases, but events may not fire accurately in extreme cases. This is expected behavior when they are executed "as fast as possible" and should not be seen as bug.

Would be interesting to test which functions specifically work with lower delays and which absolutely need their default value to be unchanged, may even hint at possible threading improvements, but I don't plan to put that work in just yet(also don't know how).

Patch is attached. I claim no authorship over any code in it and am not responsible for any trouble it may cause.
Steps To ReproduceTesting can be done by applying the patch and adding the [LL-Delays] with
OverrideDefaultDelay = true and any override for the delays described in OpenSimDefaults to the config. Most visible functions are llSetPos and llSetRot.


OverrideDefaultDelay = true
SetPos_Delay = 0;
SetRot_Delay = 0;

TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBulletSim
EnvironmentMono / Linux64
Mono VersionOther
Attached Filesdiff file icon LL-Delays.diff [^] (44,370 bytes) 2017-11-15 14:36 [Show Content]

- Relationships

-  Notes
UbitUmarov (administrator)
2017-11-15 15:26

But please provide a patch as described in [^]
sorry :(

- Issue History
Date Modified Username Field Change
2017-11-15 14:36 tampa New Issue
2017-11-15 14:36 tampa File Added: LL-Delays.diff
2017-11-15 14:36 tampa Status new => patch included
2017-11-15 15:26 UbitUmarov Note Added: 0032440
2017-11-26 22:52 tampa Relationship added related to 0008003
2017-11-27 08:17 UbitUmarov Relationship deleted related to 0008003

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker