Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help(Dealing with lag issues)

Moriz Gupte
Registered User
Join date: 25 Apr 2005
Posts: 103
08-23-2005 11:03
I am trying to optimize my script for a game that involves a click fest from multiple users:

Which of these operations are faster if I have to change a texture on a prim (there are 64 prims in all) on a touch/click?
1. have the textures in the prim's inventory and use llSetTexture for every click
2. Use default textures (ie those with published keys... etc... ) found that a bit slow not sure
3. Use llSetTextureAnim... the LSL wiki says it is broken...



In addition, which is faster

1. Changing a prims' dimensions?
2. Moving a prim

Regards
Moriz
Online Doesburg
absurd hero
Join date: 6 Jul 2005
Posts: 53
08-23-2005 12:16
According to this wiki page, moving, scaling and SetTexture all have a 0.2 second delay. llSetTextureAnim doesn't seem to have one, so that should help you at least with changing the texture.

Good luck with it!
Moriz Gupte
Registered User
Join date: 25 Apr 2005
Posts: 103
Thanks
08-23-2005 12:20
Hey thanks a lot!!!!!!!! MISSED THAT PAGE!!!
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-23-2005 12:22
llSetTextureAnim() isn't broken per se, there are just ways it could better be implemented IMO. It is faster though if it does what you want.

There are ways around, like preloading textures on hidden surfaces too that help them appear to load faster, but that probably cause more general lag overall, you force the client to load them all when it first 'sees' them.
Moriz Gupte
Registered User
Join date: 25 Apr 2005
Posts: 103
Thanks Eloise
08-24-2005 08:10
This solution works well too