Difference between revisions of "LlGetFreeMemory"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Line 20: | Line 20: | ||
|also_tests | |also_tests | ||
|also_articles | |also_articles | ||
|notes | |notes=Because of the implementation of this function it's usefulness is limited. It has been stated that when the LSL VM is moved to [[Mono]] that this function will work properly. | ||
|permission | |permission | ||
|negative_index | |negative_index |
Revision as of 17:24, 16 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.
Caveats
- The function will NEVER return a higher number than any previous call to itself.
Examples
// To show usage of memory by a script, take the free memory from 16k llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");
Notes
Because of the implementation of this function it's usefulness is limited. It has been stated that when the LSL VM is moved to Mono that this function will work properly.