|
Yuka Itamae
Registered User
Join date: 24 Jul 2006
Posts: 38
|
08-24-2006 11:50
I'm quite new to writing scripts, and the first important script that I am writing right now is an animation overrider that overrides one animation.
I was wondering what makes scripts more efficient, and what makes scripts less efficient? I would like people to give general suggestions, but if you can also think of something specific to an animation overrider, then that would be useful too.
|
|
Toneless Tomba
(Insert Witty Title Here)
Join date: 13 Oct 2004
Posts: 241
|
08-24-2006 12:14
This link in the LSL wiki may help to see what calls may be unefficent and should be avoided if possible.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
08-24-2006 14:16
Unfortunately you really have to do polling in order to override animations, and that means your script is going to be active quite often. One way to reduce the problem is to have one script that does the overriding (only it has to poll) and other scripts that handle each little functional override you might want to produce. So even though the script you are writing only want to override one animation, consider carefully whether you are going to want others that override different ones. If so this is probably a good place to invest in the more general solution.
|