[sldev] Efficient use of simulator memory for scripts

Sheet Spotter sheet.spotter at gmail.com
Fri Dec 18 12:06:46 PST 2009


I have two questions that relate to the efficient use of the limited
physical memory within the simulator. 

Firstly, does the server have any existing mechanisms to identify and
"unload" scripts that will never execute another line of code?

Everyone has likely bought objects that include a floating text script. Many
content creators are unaware that it's unnecessary to leave these scripts in
the object.

Some texture animation scripts and particle scripts are other examples of
scripts that only set a prim attribute and then never execute another line
of code. 

Scripts that only have logic in the on_rez or state_entry events will never
execute another line of code after returning from these events.

Secondly, is the statistics gathering phase of this project able to identify
the percentage of scripts or memory that is currently allocated to scripts
that will never execute another line of code?

Identifying and removing these scripts from the simulator's runtime memory
improves on the efficient use of that limited resource. It does not
eliminate the need for script/memory limits.


Sheet Spotter




More information about the SLDev mailing list