User:Becky Pippen/Script Memory Limits
< User:Becky Pippen
Jump to navigation
Jump to search
Revision as of 14:26, 10 December 2009 by Becky Pippen (talk | contribs) (Preliminary, for upcoming script memory limits)
Script Memory Limits
Oh No! LSL script memory limits are coming! What to do?
Don't panic. See this FAQ, then see the strategy and checklist below and do what you need to do.
(This is an incomplete page in progress.)
Strategy
To reduce script memory usage, start with the big items first before tweaking individual lines of code. Sorry, I'm not impressed if you save a dozen bytes through some clever rearrangement of a formula here or a statement there. First see if you can whack off thousands of bytes all at once by using a different approach or algorithm, or by removing that one memory-hungry feature, or by using a different data storage format.
Checklist
- Measure First: Have you used llGetFreeMemory() to measure how much memory your script uses? Do you know how much of that is program code and how much data? If not, learn more about measuring memory usage.
- Multiple Scripts: Does your scripting project use multiple scripts? If so, determine why:
- If it's a resizer or retexture script, or any set of scripts that update child properties in a link set simultanously, see the new LSL functions.
(Page in progress -- more to come soon...)