Difference between revisions of "LlGetMemoryLimit"

From Second Life Wiki
Jump to navigation Jump to search
m (The wording would be confusing to people who didn't know the function was a recent addition to LSL.)
m (added date of release)
Line 31: Line 31:
|cat3=Script Profiler
|cat3=Script Profiler
|cat4
|cat4
|history = Date of Release  [[ Release_Notes/Second_Life_Server/11#11.08.10.238207 | 10/08/2011 ]]
}}
}}

Revision as of 12:19, 25 June 2013

Summary

Function: integer llGetMemoryLimit( );

Get the maximum memory a script can use.
Returns the integer amount of memory the script can use in bytes.

Specification

Mono
Gets the memory limit for the script.
  • The memory limit can be up to 64k.
  • The default memory limit is 64k[1].
  • The memory limit is not the amount of real memory actually used by the script, just the upper limit on how much it could use.
LSO
LSO scripts will always use exactly 16k

Examples

See Also

Deep Notes

History

Date of Release 10/08/2011
Search JIRA for related Issues

Footnotes

  1. ^ Prior to scripts being able to set their own limit, the limit was set to 64k

Signature

function integer llGetMemoryLimit();