llGetFreeMemory
Revision as of 11:49, 15 April 2007 by Benja Kepler (talk | contribs) (Example showing memory usage)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetFreeMemory( );225 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the available heap space for the current script.
Caveats
Examples
// To show usage of memory by a script, take the free memory from 16k
llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");