Difference between revisions of "Talk:LSL Script Memory"

From Second Life Wiki
Jump to navigation Jump to search
m
(Is this the sort of test that needs running or am I wasting everyones time?)
Line 1: Line 1:
Has anyone tested the new MONO environment for memory usage? It seems its very different from the previous LSO numbers... I think a new section for MONO is needed.--[[User:Darwin Recreant|Darwin Recreant]] 21:21, 4 December 2008 (UTC)
Has anyone tested the new MONO environment for memory usage? It seems its very different from the previous LSO numbers... I think a new section for MONO is needed.--[[User:Darwin Recreant|Darwin Recreant]] 21:21, 4 December 2008 (UTC)
=== Needed Updates ===
Using the script below I found a few unusual things happening. One of them seems to be a change in free script memory at the time of compilation. This script provided the data listed below it.<lsl>integer count;
default
{
    state_entry()
    {
        llSetTimerEvent(1.0);
    }
    timer()
    {
        llOwnerSay((string)llGetFreeMemory() + " , " + (string)(++count));
        list l = ["", "", "", ""];
        llOwnerSay((string)llGetFreeMemory());
    }
    touch_start(integer detected)
    {
        llResetScript();
    }
}</lsl><lsl>[22:44]  EddyFragment Robonaught: Test Begins
[22:44]  Object: 60664 , 1//Only just recompiled for touch reset.
[22:44]  Object: 60664
[22:44]  Object: 60664 , 2
[22:44]  Object: 60628    //Then evens out
[22:44]  Object: 60628 , 3
[22:44]  Object: 60628
[22:44]  Object: 60628 , 4
[22:44]  Object: 60628
[22:44]  Object: 60628 , 5
[22:44]  Object: 60628
[22:44]  Object: 60628 , 6
[22:44]  Object: 60628
[22:44]  Object: 60628 , 7
[22:44]  Object: 60628
[22:44]  Object: 60628 , 8
[22:44]  Object: 60628
[22:44]  Object: 60628 , 9
[22:44]  Object: 60628
[22:44]  Object: 60628 , 10
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1//After a touch reset
[22:44]  Object: 60628
[22:44]  Object: 60628 , 2
[22:44]  Object: 60628
[22:44]  Object: 60628 , 3
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1
[22:44]  Object: 60628
[22:44]  Object: 60628 , 2
[22:44]  Object: 60628
[22:44]  Object: 60628 , 3
[22:44]  Object: 60628
[22:44]  Object: 60628 , 4
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1
[22:44]  Object: 60628
[22:44]  Object: 60628 , 2
[22:44]  Object: 60628
[22:44]  Object: 60628 , 3
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1
[22:44]  Object: 60628
[22:44]  Object: 60628 , 2
[22:44]  Object: 60628
[22:44]  Object: 60628 , 3
[22:44]  Object: 60628
[22:44]  Object: 60628 , 4
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1
[22:44]  Object: 60628
[22:44]  Object: 60628 , 2
[22:44]  Object: 60628
[22:44]  Object: 60664 , 1
[22:44]  Object: 60628
[22:45]  Object: 60628 , 2
[22:45]  Object: 60628
[22:45]  Object: 60628 , 3
[22:45]  Object: 60628
[22:45]  Object: 60628 , 4
[22:45]  Object: 60628
[22:45]  Object: 60628 , 5
[22:45]  Object: 60628
[22:45]  Object: 60628 , 6
[22:45]  Object: 60628
[22:45]  Object: 60628 , 7
[22:45]  Object: 60628
[22:45]  Object: 60628 , 8
[22:45]  Object: 60628
[22:45]  Object: 60628 , 9
[22:45]  Object: 60628
[22:45]  Object: 60628 , 10
[22:45]  Object: 60628
[22:45]  Object: 60628 , 11
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1
[22:45]  Object: 60628
[22:45]  Object: 60628 , 2
[22:45]  Object: 60628
[22:45]  Object: 60628 , 3
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1//But this would happen (it seemed to me) after letting the script run a little more before the reset
[22:45]  Object: 60664
[22:45]  Object: 60664 , 2
[22:45]  Object: 60664
[22:45]  Object: 60664 , 3
[22:45]  Object: 60664
[22:45]  Object: 60664 , 4
[22:45]  Object: 60664
[22:45]  Object: 60664 , 5
[22:45]  Object: 60628
[22:45]  Object: 60628 , 6
[22:45]  Object: 60628
[22:45]  Object: 60628 , 7
[22:45]  Object: 60628
[22:45]  Object: 60628 , 8
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1
[22:45]  Object: 60628
[22:45]  Object: 60628 , 2
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1
[22:45]  Object: 60628
[22:45]  Object: 60628 , 2
[22:45]  Object: 60628
[22:45]  Object: 60628 , 3
[22:45]  Object: 60628
[22:45]  Object: 60628 , 4
[22:45]  Object: 60628
[22:45]  Object: 60628 , 5
[22:45]  Object: 60628
[22:45]  Object: 60628 , 6
[22:45]  Object: 60628
[22:45]  Object: 60628 , 7
[22:45]  Object: 60628
[22:45]  Object: 60628 , 8
[22:45]  Object: 60628
[22:45]  Object: 60628 , 9
[22:45]  Object: 60628
[22:45]  Object: 60628 , 10
[22:45]  Object: 60628
[22:45]  Object: 60628 , 11
[22:45]  Object: 60628
[22:45]  Object: 60628 , 12
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1
[22:45]  Object: 60628
[22:45]  Object: 60628 , 2
[22:45]  Object: 60628
[22:45]  Object: 60664 , 1//And here again
[22:45]  Object: 60664
[22:45]  Object: 60664 , 2
[22:45]  Object: 60664
[22:45]  Object: 60664 , 3
[22:45]  Object: 60664
[22:45]  Object: 60664 , 4
[22:45]  Object: 60664
[22:45]  Object: 60664 , 5
[22:45]  Object: 60628
[22:45]  Object: 60628 , 6
[22:45]  Object: 60628</lsl>

Revision as of 21:55, 1 July 2009

Has anyone tested the new MONO environment for memory usage? It seems its very different from the previous LSO numbers... I think a new section for MONO is needed.--Darwin Recreant 21:21, 4 December 2008 (UTC)

Needed Updates

Using the script below I found a few unusual things happening. One of them seems to be a change in free script memory at the time of compilation. This script provided the data listed below it.<lsl>integer count;

default {

   state_entry()
   {
       llSetTimerEvent(1.0);
   }
   timer()
   {
       llOwnerSay((string)llGetFreeMemory() + " , " + (string)(++count));
       list l = ["", "", "", ""];
       llOwnerSay((string)llGetFreeMemory());
   }
   touch_start(integer detected)
   {
       llResetScript();
   }

}</lsl><lsl>[22:44] EddyFragment Robonaught: Test Begins [22:44] Object: 60664 , 1//Only just recompiled for touch reset. [22:44] Object: 60664 [22:44] Object: 60664 , 2 [22:44] Object: 60628 //Then evens out [22:44] Object: 60628 , 3 [22:44] Object: 60628 [22:44] Object: 60628 , 4 [22:44] Object: 60628 [22:44] Object: 60628 , 5 [22:44] Object: 60628 [22:44] Object: 60628 , 6 [22:44] Object: 60628 [22:44] Object: 60628 , 7 [22:44] Object: 60628 [22:44] Object: 60628 , 8 [22:44] Object: 60628 [22:44] Object: 60628 , 9 [22:44] Object: 60628 [22:44] Object: 60628 , 10 [22:44] Object: 60628 [22:44] Object: 60664 , 1//After a touch reset [22:44] Object: 60628 [22:44] Object: 60628 , 2 [22:44] Object: 60628 [22:44] Object: 60628 , 3 [22:44] Object: 60628 [22:44] Object: 60664 , 1 [22:44] Object: 60628 [22:44] Object: 60628 , 2 [22:44] Object: 60628 [22:44] Object: 60628 , 3 [22:44] Object: 60628 [22:44] Object: 60628 , 4 [22:44] Object: 60628 [22:44] Object: 60664 , 1 [22:44] Object: 60628 [22:44] Object: 60628 , 2 [22:44] Object: 60628 [22:44] Object: 60628 , 3 [22:44] Object: 60628 [22:44] Object: 60664 , 1 [22:44] Object: 60628 [22:44] Object: 60628 , 2 [22:44] Object: 60628 [22:44] Object: 60628 , 3 [22:44] Object: 60628 [22:44] Object: 60628 , 4 [22:44] Object: 60628 [22:44] Object: 60664 , 1 [22:44] Object: 60628 [22:44] Object: 60628 , 2 [22:44] Object: 60628 [22:44] Object: 60664 , 1 [22:44] Object: 60628 [22:45] Object: 60628 , 2 [22:45] Object: 60628 [22:45] Object: 60628 , 3 [22:45] Object: 60628 [22:45] Object: 60628 , 4 [22:45] Object: 60628 [22:45] Object: 60628 , 5 [22:45] Object: 60628 [22:45] Object: 60628 , 6 [22:45] Object: 60628 [22:45] Object: 60628 , 7 [22:45] Object: 60628 [22:45] Object: 60628 , 8 [22:45] Object: 60628 [22:45] Object: 60628 , 9 [22:45] Object: 60628 [22:45] Object: 60628 , 10 [22:45] Object: 60628 [22:45] Object: 60628 , 11 [22:45] Object: 60628 [22:45] Object: 60664 , 1 [22:45] Object: 60628 [22:45] Object: 60628 , 2 [22:45] Object: 60628 [22:45] Object: 60628 , 3 [22:45] Object: 60628 [22:45] Object: 60664 , 1//But this would happen (it seemed to me) after letting the script run a little more before the reset [22:45] Object: 60664 [22:45] Object: 60664 , 2 [22:45] Object: 60664 [22:45] Object: 60664 , 3 [22:45] Object: 60664 [22:45] Object: 60664 , 4 [22:45] Object: 60664 [22:45] Object: 60664 , 5 [22:45] Object: 60628 [22:45] Object: 60628 , 6 [22:45] Object: 60628 [22:45] Object: 60628 , 7 [22:45] Object: 60628 [22:45] Object: 60628 , 8 [22:45] Object: 60628 [22:45] Object: 60664 , 1 [22:45] Object: 60628 [22:45] Object: 60628 , 2 [22:45] Object: 60628 [22:45] Object: 60664 , 1 [22:45] Object: 60628 [22:45] Object: 60628 , 2 [22:45] Object: 60628 [22:45] Object: 60628 , 3 [22:45] Object: 60628 [22:45] Object: 60628 , 4 [22:45] Object: 60628 [22:45] Object: 60628 , 5 [22:45] Object: 60628 [22:45] Object: 60628 , 6 [22:45] Object: 60628 [22:45] Object: 60628 , 7 [22:45] Object: 60628 [22:45] Object: 60628 , 8 [22:45] Object: 60628 [22:45] Object: 60628 , 9 [22:45] Object: 60628 [22:45] Object: 60628 , 10 [22:45] Object: 60628 [22:45] Object: 60628 , 11 [22:45] Object: 60628 [22:45] Object: 60628 , 12 [22:45] Object: 60628 [22:45] Object: 60664 , 1 [22:45] Object: 60628 [22:45] Object: 60628 , 2 [22:45] Object: 60628 [22:45] Object: 60664 , 1//And here again [22:45] Object: 60664 [22:45] Object: 60664 , 2 [22:45] Object: 60664 [22:45] Object: 60664 , 3 [22:45] Object: 60664 [22:45] Object: 60664 , 4 [22:45] Object: 60664 [22:45] Object: 60664 , 5 [22:45] Object: 60628 [22:45] Object: 60628 , 6 [22:45] Object: 60628</lsl>