From Second Life Wiki
Revision as of 07:50, 10 August 2011 by Kelly Linden (Talk | contribs)

Jump to: navigation, search
Emblem-important-red.png Pre-release Documentation Warning!

This function is not available yet. This documentation was written prior to its final release so it may not match the final implementation.


Function: integer llSetMemoryLimit( integer limit );

Request limit bytes to be reserved for this script.
Returns the integer Returns Success/Failure Flag for whether the memory limit was set.

• integer limit


This function's behavior is dependent upon the VM the script is using. Mono is the new VM, LSO is the old VM.

Sets the memory limit for the script.
  • The memory limit can be set up to 64k.
  • The memory limit can not be set lower than the memory currently in use by the script.
  • All new scripts start with a limit of 64k
  • All existing scripts have a limit of 64k
  • A lower limit will effect the amount of memory reported in the viewer UI and by llGetObjectDetails.
Has no effect on LSO scripts which will always use exactly 16k


See Also


•  llGetFreeMemory
•  llGetUsedMemory
•  llGetObjectDetails

Deep Notes


  • Scheduled for RC Magnum channel, week of August 3, 2011.

Search JIRA for related Issues


function integer llSetMemoryLimit( integer limit );