General Scripting Performance Tips?

I wanted to ask (and start a thread here) for scripters to discuss ways of improving script performance.

Obviously, some improvements aren't tied to the scripting engine itself and are simply algorithmic.  However, sometimes there are certain things in scripts that are very inefficient when implemented one way, and much more efficient when implemented in another.

For example:  When creating geometry, is it better to spend a little extra time to calculate normals to insert, or is the internal algorithm inside DS that dynamically recalculates them when faces are added more efficient?

Are triangles handled as well as quads in the DS engine?  Which should be preferred?  And does this change if the quad would be non-planar?

 

Comments

  • I'd expect that using internal (compiled) coe where possible would always be faster than trying to explicitly calculate in a script.

Sign In or Register to comment.