aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When the user stops a script, have it remain stoppedOren Hurvitz2015-08-111-3/+18
| | | | | | Previously the script state was never saved for a !Running script, so upon region restart the script would be Running again. The use of the 'StayStopped' flag is needed because all scripts are automatically stopped when the region shuts down, but in that case we shouldn't save in their state that they're !Running.
* When scripts are sleeping, don't count that as execution timeOren Hurvitz2015-08-1117-48/+91
| | | | Sleeping doesn't use the CPU.
* Show Script Time in the statistics panelOren Hurvitz2015-08-111-0/+1
| | | | The value shown is the number of milliseconds per frame that were spent executing scripts in this region.
* Changed "Script Execution Time" to be the gross time, i.e. including ↵Oren Hurvitz2015-08-111-164/+176
| | | | | | handling it in XEngine Previously the "Net Time" was reported: only the time actually spent in the script's code. This is not a correct indication of how much load the script places on the simulator, because scripts that change state often or have many events use up a lot of time just in the event handlers, and previously this time wasn't counted.
* Report "Script Execution Time" as the time spent executing the script in the ↵Oren Hurvitz2015-08-111-17/+12
| | | | | | | | last 30 seconds. Use a sliding window to calculate this. Notes: - This metric provides a better indication of which scripts are taking up a lot of CPU (and therefore should be optimized). - Previously the execution time was reset to 0 in every new measurement period, causing the reported time to fluctuate for no reason. This has been fixed by using a sliding window.
* Improved calculation of Script Execution TimeStartedOren Hurvitz2015-08-111-6/+12
| | | | | | 1. Use a Stopwatch (a high-resolution timer) 2. Whenever we start a new measurement period, zero out the total execution time (previously it just kept accumulating) 3. Changed the measurement period from 30 minutes to 30 seconds. This is much more useful in the "Top Scripts" dialog, as it shows currently active scripts
* Fixed mistakes related to confusion between Environment.TickCount ↵Oren Hurvitz2015-08-111-1/+1
| | | | (milliseconds) and TimeSpan.TicksPerXXX (10000 x milliseconds)
* Log scripts that have processed many events: this is probably an indication ↵Oren Hurvitz2015-08-111-0/+8
| | | | of a problem
* Have osAvatarName2Key check the cache first, even for foreign usersOren Hurvitz2015-08-071-22/+23
| | | | Another change: removed the second call to userManager.AddUser(). UserManagementModule won't modify an existing record.
* create osGetAvatarHomeURIChristopher2015-08-043-0/+40
| | | | Signed-off-by: Melanie Thielker <melanie@t-data.com>
* Make osAvatarName2Key() able to get names from unknown HG usersChristopher2015-08-041-4/+40
| | | | Signed-off-by: Melanie Thielker <melanie@t-data.com>
* osKey2Name returns now correct values for HG users who are not on the region.Christopher2015-08-021-10/+18
| | | | Signed-off-by: Oren Hurvitz <orenh@kitely.com>
* Guard against null AgentPrefs service in llGetAgentLanguage()Cinder2015-06-211-3/+10
| | | | Signed-off-by: Diva Canto <diva@metaverseink.com>
* Refactor AgentPreferences so that database operations happen centrally. the ↵Cinder2015-06-131-7/+3
| | | | | | opensim way. Signed-off-by: Diva Canto <diva@metaverseink.com>
* Support for Linden AgentPreferences capability and friends ↵Cinder2015-06-131-5/+11
| | | | | | (UpdateAgentLanguage and UpdateAgentInformation) and Mantis #7157 Signed-off-by: Diva Canto <diva@metaverseink.com>
* Correct constant RCERR_CAST_TIME_EXCEEDED.Magnuz Binder2015-06-011-1/+1
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Add a new os function "osGetGender()"dahlia2015-05-293-0/+51
|
* llListRandomize() wasn't very randomCinder2015-05-271-6/+7
| | | | Signed-off-by: Diva Canto <diva@metaverseink.com>
* Fix mesh cache race condition in llCastRay V3.Magnuz Binder2015-05-231-2/+4
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Use own mesh cache in llCastRay V3 after throttling.Magnuz Binder2015-05-221-39/+104
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Throttle llCastRay V3.Magnuz Binder2015-05-221-2/+90
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* New values returned by llGetEnvTalun2015-05-201-1/+33
| | | | | | | | Implements recent changes to llGetEnv region_cpu_ratio hardcoded to 1 region_product_sku hardcoded to OpenSim Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Patch llCastRay fully simplified to V3.Magnuz Binder2015-05-121-212/+217
|
* Revert "Patch llCastRay fully-simplified to V2." for further review.Michael Cerquoni2015-05-041-15/+14
| | | | This reverts commit c96ee68953eb31fc2ad6d1df9b7a4bb19c584e17.
* Missing constants for llGetObjectDetailsTalun2015-05-042-0/+33
| | | | | | | | | OBJECT_BODY_SHAPE_TYPE OBJECT_HOVER_HEIGHT OBJECT_LAST_OWNER_ID OBJECT_RENDER_WEIGHT Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Implement llGetGeometricCenter correctly.Magnuz Binder2015-05-041-1/+20
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Patch llCastRay fully-simplified to V2.Magnuz Binder2015-05-041-14/+15
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Implement llCastRay fully, simplified.Magnuz Binder2015-05-031-1/+759
|
* Updated all occurrences of AssemblyVersion("0.8.1.*") to ↵Diva Canto2015-04-293-3/+3
| | | | AssemblyVersion("0.8.2.*")
* Allow setting profilecut diff to 0.02 from scripts just like from viewer.Magnuz Binder2015-04-201-3/+3
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Implement llGetBoundingBox fully.Magnuz Binder2015-04-201-42/+447
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Temporarily comment out OSSL enabled warning log message.Robert Adams2015-04-141-1/+1
| | | | Added in wrong place. It is printed once per script rather than once per region.
* Enable OSSL functions by default using the osslEnable.ini configuration file.Robert Adams2015-04-141-0/+3
| | | | | This changes OpenSim.ini.example to, by default, include osslEnable.ini which turns on the OSSL functions and limits who can do which operations.
* Add osCheckODE() function so scripts can configure for running with legacy ↵Robert Adams2015-04-123-0/+21
| | | | | | | | physics engine. Function returns 'true' of the physics engine is configured to be 'OpenDynamicsEngine'. The presumption is that all other physics engines work the same (like SL) or it is a bug. Does not require ossl functions to be enabled.
* Fix llTargetOmega non-physical gain.Magnuz Binder2015-04-121-0/+3
| | | | Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
* Parameterize sleeps in LSL functions.Magnuz Binder2015-03-221-64/+123
|
* Allow setting hollow to 99% from scripts just like from viewer.Magnuz Binder2015-03-222-6/+6
|
* Allow setting holesize to 0.01 from scripts just like from viewer.Magnuz Binder2015-03-221-4/+4
|
* Allow setting dimple diff to 0.02 from scripts just like from viewer, add ↵Magnuz Binder2015-03-221-2/+7
| | | | clipping and fix old copy-paste error.
* viewers can set a minimum distance 0.02 between path cut start and path cut endFreaky Tech2015-03-221-3/+3
|
* Move state change in progress in ScriptInstance.PostEvent() to the top of ↵Justin Clark-Casey (justincc)2015-03-121-3/+4
| | | | the EventQueue lock to avoid some flags possibly being wrongly set (m_LastControlLevel, etc.)
* Lock around EventQueue manipulation in ScriptInstance.SetState() as queues ↵Justin Clark-Casey (justincc)2015-03-121-17/+24
| | | | | | are not thread-safe structures. This should also make it less likely that an event will be erroneously posted during a state change by precluding a race condition with a thread calling ScriptInstance.PostEvent()
* A workaround for the state change problem described best here ↵Bob Shaffer II2015-03-121-1/+22
| | | | http://opensimulator.org/mantis/view.php?id=6960 which should make state changes behave more like is described here http://wiki.secondlife.com/wiki/State
* Give llGiveInventory a way to querry Hypergrid visitors so network vendors ↵BlueWall2015-03-051-2/+6
| | | | are able to give items to Hg visitors
* Add outbound URL filter to llHttpRequest() and osSetDynamicTextureURL*() ↵Justin Clark-Casey (justincc)2015-03-041-1/+5
| | | | | | | | script functions. This is to address an issue where HTTP script functions could make calls to localhost and other endpoints inside the simulator's LAN. By default, calls to all private addresses are now blocked as per http://en.wikipedia.org/wiki/Reserved_IP_addresses If you require exceptions to this, configure [Network] OutboundDisallowForUserScriptsExcept in OpenSim.ini
* usability fixes for LSL APIFreaky Tech2015-03-041-207/+1409
| | | | | | exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* simplify llStringToBase64 and llBase64ToStringFreaky Tech2015-03-041-2/+3
| | | | Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* usability fixes for LightShare APIFreaky Tech2015-03-041-41/+328
| | | | | | exception based error messages were cryptic for casual users Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected osMakeNotecard(string data) text length was calculated wrong. The ↵Freaky Tech2015-03-031-5/+15
| | | | | | Linden text format defines a byte count in that format. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* corrected script notecard parser. It now handles notecards with inventory as ↵ft@noemail2015-03-032-9/+13
| | | | | | well. Signed-off-by: BlueWall <jamesh@bluewallgroup.com>