Difference between revisions of "LlGetSPMaxMemory"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 29: Line 29:
|lso
|lso
|cat1=Script
|cat1=Script
|cat2
|cat2=Memory
|cat3
|cat3=Script Profiler
|cat4
|cat4
}}
}}

Revision as of 09:39, 18 April 2011

Summary

Function: integer LlGetSPMaxMemory( );

Returns the integer of the most bytes used while LlScriptProfiler was last active.

Specification

This function's behavior is dependent upon the VM the script is using. Mono is the new VM, LSO is the old VM. The big difference between between Mono and LSO is that Mono scripts run faster and can utilize four times more memory.

Mono

During and after a LlScriptProfiler profiling run, llGetSPMaxMemory will return the most memory used during profiling.

LSO

This function has no effect for scripts not compiled to Mono. It will always return 16384, the fixed LSO memory size.

Examples

See Also

Functions

•  llGetFreeMemory
•  llGetUsedMemory

Deep Notes

Signature

function integer LlGetSPMaxMemory();