I keep hearing about the 16k impass for a single script size.
The question is, how do I tell how big a script is before it hits the 16k mark?
I'm sure its simple and I'm just being a dumb blonde again.
Thanks - Dina
These forums are CLOSED. Please visit the new forums HERE
How do I tell how big a script is? |
|
|
Dina Vanalten
Registered User
Join date: 24 Dec 2006
Posts: 268
|
05-05-2007 19:37
I keep hearing about the 16k impass for a single script size.
The question is, how do I tell how big a script is before it hits the 16k mark? I'm sure its simple and I'm just being a dumb blonde again. Thanks - Dina |
|
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
|
05-05-2007 19:45
You can use llGetFreeMemory(), which some caveats which I'm not sure have or have not been fixed. The link has more info.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
05-05-2007 20:54
one thing with get free memory, it doesnt mean squat if you put it in the wrong place
ie you start off with a script that has an empty list, you get the free memory and then load up the list full of data, it will tell you for example 16kb free, where it might actually be 500 bytes so you have to put it in a point where your script is not gonna take in or assign anymore data which can be tricky depending on the complexity of the script |
|
Ultralite Soleil
Registered User
Join date: 31 Aug 2006
Posts: 108
|
05-06-2007 06:27
so you have to put it in a point where your script is not gonna take in or assign anymore data which can be tricky depending on the complexity of the script I like to put it in touch_start, so that I can check the memory remaining whenever I feel like it. Take it out before selling/publishing the item. Example: CODE
|