UbitUmarov
60868fe975
vs2017 debug seems to get very confused with our script class called Timer (run runprebuild)
2021-03-11 23:54:34 +00:00
UbitUmarov
23de4e3a82
let scriptEvents flags represent all events we have (so change to 64bit ulong) not the need to keep duplicated definitions on main framework and each script engine, namely because Xengine app domain option
2020-09-04 14:22:24 +01:00
UbitUmarov
7364acf42e
Xengine: change allocation of executor events mask map
2020-08-31 17:18:51 +01:00
UbitUmarov
ad5aff2d17
more on scripts *target* events
2020-02-26 19:18:07 +00:00
UbitUmarov
828a3bb7f8
yeack, scripts can set targets, not having the events
2020-02-26 03:26:44 +00:00
UbitUmarov
d7671f3c01
a few changes to script engines releasecontrols
2020-02-20 08:20:15 +00:00
UbitUmarov
2a90f78fe1
add LSL_Integer osIsNotValidNumber(LSL_Float v)
2019-10-17 23:33:11 +01:00
UbitUmarov
d79d7e228a
add OSSL option PermissionErrortoOwner (true or false). if true ossl functions permission errors will only be sent to prim owner, defaul false: send all around
2019-10-16 00:08:45 +01:00
UbitUmarov
96dabca85b
make sure XEngine does release script events when a script is destroyed
2019-08-01 05:31:03 +01:00
UbitUmarov
ac651a168a
Xengine: exclude a few more events from mineventdelay
2019-02-20 04:54:32 +00:00
UbitUmarov
7c0eab8a23
Xengine: don't lose state change events
2019-02-20 04:04:35 +00:00
UbitUmarov
0307427b94
a few more changes
2018-11-26 20:20:28 +00:00
UbitUmarov
7258531e3b
show prim ID on script error
2018-11-26 19:57:42 +00:00
UbitUmarov
1f5169e636
code aesthetics
2018-11-17 16:04:55 +00:00
UbitUmarov
707eb8de82
remove more xml things no longer needed on .net >4.5.2
2018-01-17 07:17:24 +00:00
UbitUmarov
c92ba1cc04
shut up some pesty warnings
2018-01-15 16:23:19 +00:00
UbitUmarov
ec6f87d3ef
disable some XmlResolver
2018-01-04 23:51:43 +00:00
Melanie Thielker
556d95ef05
Revert "Allow OSSL scripts to softfail"
...
This reverts commit e5244fe708 .
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
2017-01-07 23:36:07 +00:00
Melanie Thielker
f457925f80
Fix a compile issue and reintroduce the "GOD" script option
2017-01-07 23:12:51 +00:00
Melanie Thielker
e5244fe708
Allow OSSL scripts to softfail
2017-01-07 22:53:46 +00:00
Melanie Thielker
b16abc8166
Massive tab and trailing space cleanup
2017-01-05 19:07:37 +00:00
UbitUmarov
4e64445c39
replace datetime.now on just timming by faster utcnow
2016-11-22 05:18:06 +00:00
UbitUmarov
6c44dceced
change display and log of normal script errors
2016-11-08 13:39:49 +00:00
UbitUmarov
5afc5fe343
Xengine: try to reduce memory pressure of scripts compile. Still ugly code, possible mistakes, but i need to share it before i loose it :) )
2016-08-31 09:15:08 +01:00
UbitUmarov
67a853a70e
add a missing lock()
2016-08-21 22:44:21 +01:00
UbitUmarov
3fef576554
avoid telling a work job to cancel itself
2016-08-19 16:14:08 +01:00
UbitUmarov
6703be2a90
do not enqueue next event processing if script is in SelfDelete state
2016-08-19 14:17:57 +01:00
Diva Canto
ab12a14279
Pushed AssemblyVersion up to VersionInfo, so that we don't need to do global replace anymore.
2016-02-21 11:14:02 -08:00
Diva Canto
59b63b6406
On to 0.8.3!
...
Conflicts:
OpenSim/Region/PhysicsModules/ConvexDecompositionDotNet/Properties/AssemblyInfo.cs
2015-10-18 21:51:49 -07:00
UbitUmarov
7e8544f26e
fix missing clear of queued timer even and state transition flags on scripts reset
2015-10-01 05:20:04 +01:00
UbitUmarov
c4c6fcf7ad
fix missing proprieties get, etc
2015-09-08 12:43:54 +01:00
UbitUmarov
a11edceb00
seems to compile ( tests comented out)
2015-09-02 19:54:53 +01:00
UbitUmarov
371c9dd2af
bad merge?
2015-09-01 14:54:35 +01:00
Melanie Thielker
c53f732163
Change the IScriptApi back to it's original form, removing XEngine
...
specific additions that should not have been there in the first place.
Sleeping and time measurement are now completely internal to XEngine
2015-08-17 21:46:30 +02:00
Melanie Thielker
ee7debcca6
Revert "When scripts are sleeping, don't count that as execution time"
...
The approach is good but the way it is written breaks the architecture.
Rewrite follows.
This reverts commit a568f06b7f .
2015-08-17 18:11:45 +02:00
Melanie Thielker
664ecb1938
Prevent the spammy "many event" message from appearing in normal use.
...
Console command debug xengine now turns that on.
Also, per orenh, remove the triggers at 1000 and 10000 as they are not
useful now that top scripts works.
2015-08-17 18:05:39 +02:00
Oren Hurvitz
59da146e9d
When the user stops a script, have it remain stopped
...
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.
2015-08-11 08:44:27 +01:00
Oren Hurvitz
a568f06b7f
When scripts are sleeping, don't count that as execution time
...
Sleeping doesn't use the CPU.
2015-08-11 08:44:27 +01:00
Oren Hurvitz
d24528b3bc
Show Script Time in the statistics panel
...
The value shown is the number of milliseconds per frame that were spent executing scripts in this region.
2015-08-11 08:44:26 +01:00
Oren Hurvitz
5679cd0100
Changed "Script Execution Time" to be the gross time, i.e. including 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.
2015-08-11 08:42:31 +01:00
Oren Hurvitz
a3bed1fbcb
Report "Script Execution Time" as the time spent executing the script in the 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.
2015-08-11 08:42:26 +01:00
Oren Hurvitz
287096d826
Improved calculation of Script Execution TimeStarted
...
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
2015-08-11 07:35:41 +01:00
Oren Hurvitz
20af31f18e
Fixed mistakes related to confusion between Environment.TickCount (milliseconds) and TimeSpan.TicksPerXXX (10000 x milliseconds)
2015-08-11 07:35:40 +01:00
Oren Hurvitz
4c6fb9fb64
Log scripts that have processed many events: this is probably an indication of a problem
2015-08-11 07:35:39 +01:00
Diva Canto
da32512ea4
Updated all occurrences of AssemblyVersion("0.8.1.*") to AssemblyVersion("0.8.2.*")
2015-04-29 18:47:17 -07:00
Justin Clark-Casey (justincc)
3a7d42378f
Move state change in progress in ScriptInstance.PostEvent() to the top of the EventQueue lock to avoid some flags possibly being wrongly set (m_LastControlLevel, etc.)
2015-03-12 00:14:30 +00:00
Justin Clark-Casey (justincc)
7410924de0
Lock around EventQueue manipulation in ScriptInstance.SetState() as queues 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()
2015-03-12 00:07:01 +00:00
Bob Shaffer II
b4b13510e8
A workaround for the state change problem described best here 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
2015-03-12 00:01:30 +00:00
Freaky Tech
25901a703a
corrected llGetStartParameter according to http://wiki.secondlife.com/wiki/LlGetStartParameter
...
Signed-off-by: BlueWall <jamesh@bluewallgroup.com >
2015-03-03 15:35:23 -05:00
Freaky Tech
b8157174ca
corrected llResetScript according to description within LSL wiki
...
Signed-off-by: BlueWall <jamesh@bluewallgroup.com >
2015-03-03 15:35:00 -05:00