I'm trying to guess how the forthcoming Script Memory Restrictions might impact on SL scripted content.
This is more like a puzzle game because I don't have many pieces but you can probably help me fill them in. Also some of my pieces are wrong.
We know that one day, perhaps very soon, perhaps in a years time, that there will be script memory limits:-
* for an object to be rezzed - the land parcel must have enough free memory or it won't rezz - land will support so many kBs per sqm
* for an object to attach - the avatar must have enough free memory in its memory pool to hold the attachment
SIMs
each sim:-
* 65536 sqm
* supports 15000 prims
* supports 100 avatars max
* has 800 MB RAM for all scripts
SIM SCRIPT MEMORY
Have 800MB shared between avatars and rezzed objects script memory.
assume:-
* all the 800MB is for scripts, in reality some will be for script management and other processes.
* a script will be fixed in memory, at present scripts can be swapped in and out of RAM
* guess 200MB for avatar pool --> each avatar has 2MB for all script attachments
* guess 600MB for rezzed objects
--> each sqm of land supports 9.155kB of script memory
--> each prim supports 40kB of script memory
so a 512sqm land parcel supports 117 prims and gives owner 4.68MB of memory for scripts
note, this is further complicated because
* Mono only uses as much memory as the script requires up to 64kB max
* an LSL script always uses 16kB of memory
IMPLICATIONS
Here i have used prim count equals memory as usually we count prims with land and don't think so much about sqm.
These implications are probably quite optimistic as the 800MB of memory will have other processes sharing it.
Rezzed Objects
* our V&L Tiled chess computer uses 82 prims and requires 3MB memory
a resident will need at least 75 prims of memory free to rez it - no problem here we hope.
* fictional game - uses 30 prims but needs 3MB memory - so needs 75 prims worth of memory
a resident having 10 such games would need 750 prims of memory and not 300 prims.
Attachments
* our HUD chess requires 3MB memory, but avatar limit is 2MB so it will NOT attach
* 250 prim hair with small 5kB script in each prim
- Mono requires 250 x 5kB --> 1.25MB so it WILL attach
- LSL requires 250 x 16kB --> 4MB so it will NOT attach
Complication, Mono is not recommended for attachments as at it takes a long time to startup and can also remain locked in memory.
DISCLAIMER
The above are my guesses but you can help by correcting me and filling in the details
* how much RAM for all scripts in a sim
* will any script swapping be allowed
- if script swapping is allowed then virtually any guesses on script limits are valid
* how much of 800MB is actually available for script memory
* how many avatars are allowed in a sim
* will the avatar memory pool be adjustable by sim owners
* note, some landowners offer double prims but i guess what really matters is sqm of land per resident.
* if the above kB/prim is confusing then kB/sqm can easily be used
Perhaps my model above is completely wrong in which case I'd really like to see a more realistic one so we can better plan our content creation. I'm just playing here but any comments, criticisms are appreciated.