[sldev] Texture Garbage Collection (was Re: UMA Grid - Offline for a bit)

Callum Lerwick seg at haxxed.com
Sun Apr 8 13:02:39 PDT 2007


On Sun, 2007-04-08 at 07:36 -0700, James Cook wrote:
> So if you have a raw key reference to a texture inside a script the 
> texture will not be garbage collected.  If it is, then our garbage 
> collector is broken.  (It has broken in the past.  We don't immediately 
> delete the garbage -- we keep it around for a few days just in case we 
> screwed something up so we can put it back.)
> 
> If you do something silly like this, though, the texture will be garbage 
> collected:
> 
> key texture_id = (key)("12345678-abcd-abcd-" + "abcd-123456789012");

Seems like the prudent thing to do is just put a copy of the texture in
the object, along side the script...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070408/eb0f243f/attachment.pgp


More information about the SLDev mailing list