Difference between revisions of "LlGetFreeMemory"
Jump to navigation
Jump to search
Benja Kepler (talk | contribs) (Example showing memory usage) |
m (More Accurate Description) |
||
Line 5: | Line 5: | ||
|func_footnote | |func_footnote | ||
|func_desc | |func_desc | ||
|return_text=that is the available heap space for the current script. | |return_text=that is the historic available heap space for the current script. This means that this function will NEVER return a higher number than any previous call to itself. [[User:TxMasterG Ping/llGetFreeMemory|Example]] | ||
|spec | |spec | ||
|caveats | |caveats |
Revision as of 16:56, 15 April 2007
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 historic available heap space for the current script. This means that this function will NEVER return a higher number than any previous call to itself. Example
Caveats
Examples
// To show usage of memory by a script, take the free memory from 16k
llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");