Difference between revisions of "LlGetFreeMemory"

From Second Life Wiki
Jump to navigation Jump to search
m (More Accurate Description)
Line 5: Line 5:
|func_footnote
|func_footnote
|func_desc
|func_desc
|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]]
|return_text=that is the historic available heap space for the current script.
|spec
|spec
|caveats
|caveats=*The function will NEVER return a higher number than any previous call to itself.
**[[User:TxMasterG Ping/llGetFreeMemory|Example]]
|constants
|constants
|examples=
|examples=
 
<pre>
// To show usage of memory by a script, take the free memory from 16k
// To show usage of memory by a script, take the free memory from 16k
 
llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");
  llOwnerSay("Script uses " + (string)((16384 - llGetFreeMemory())/1024) + " kBytes");
</pre>
 
|helpers
|helpers
|also_functions
|also_functions

Revision as of 17:22, 16 April 2007