RSS SL
Second Life Community - All Activity
-
HIRING IMMEDIATELY: SPA & SERVERS - CHARITY EVENT
hope you got it copyrighted then. -
How Does Your SL Look Today?
Partying at the beach like it's 1971! -
Take a word leave a word (game)
Southern Man -
What if Linden Lab added harvesting and crafting to Second Life?
I'd just do it for the fun of it. Sort of like collecting Boopies. People seem to really enjoy that for no real reward. Or how about those badges you mentioned before? -
What's better for a sim server? llGetOwner every time you need it, or use a global variable instead? [Update] The global variable method is significantly more efficient.
Agreed that this is a micro-optimization for the most part, and very rarely it's necessary especially considering the caveat of forgetting to update a globally stored key. However, another thing to consider is memory use: function calls can be surprisingly expensive memory wise. It's difficult to get solid numbers since memory is reserved in chunks, but just for consideration, a script that does very little else than hold a 256 character global string, an user-defined function that sleeps and assigns llGetOwner to a variable and various events do the same for a total of 7 llGetOwner calls consumes 7994 bytes of memory - the same where the assignments are changed to take the key from a global variable other than state_entry uses 5434 bytes. If those 2560 bytes of headroom could make or break your script, it's a worthwhile consideration.
