|
|
|
[
Permlink
| « Hide
]
Harleen Gretzky added a comment - 22/Jan/09 10:33 PM
Reproduces for me on Second Life Server 1.25.4.108489, my script times went from 0.136 to 0.301.
This is due to the state changes in the script, if you comment out the 'state run' command cript times drop down to negligible.
Duplicate of SVC-3691. There is only one initial state change, all of the code that causes the order of magnitude difference in reported execution time is within the "run" state.. No state changes occur in this state.
It goes from state default to state run, then performs the change subroutine 6 times then goes back to state default then back to state run....
I commented out the state run and the script time drops to 0.001, then I reallowed state run and commented out the state default within the run state and script times again drop to 0.001. Place the modified script in a prim and watch the different load under LSL/Mono
The modified script with state changes removed still provides the following data: 0.685 Object Mono Now I could understand if the Mono script triggered 4x faster, but the trigger event times are identical to LSL By the way, its hardly suprising the script showed 0.001 when you commented out the run state, all the functionality in question here is in that state.. would have been a better test to just remove the state change and put it in a tight loop as the new script does It showed 0.001 no matter which state I commented out. I even combined it into one state and it still only shows 0.050. But I will try your script and see.
I'm a little bit at a loss as to what the expected behavior should be. Writing a script that somehow relies on the timing of the bytecode interpreter is probably not a good idea. I would recommend the insertion of a timer event or at least some sleeps to obtain a defined behavior.
If after the addition of such throttling code, you still observe a significant performance delta, please file a new JIRA. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||