Show in Contents
Add to Favorites
Home: MAXScript Help
Share
Writing Better and Faster Scripts
Writing Better and Faster Scripts
How To Make It Faster?
Frequently Asked Questions
>
Writing Better and Faster Scripts
>
How To Make It Faster?
Topics in this section
How To Make It Faster?
Disable Viewport Redraws when making changes to scene objects
Disable Undo system when possible
Modify Panel can be slow - change to Create Panel when possible
Use the 'flagForeground' node viewport state method
Never get a single pixel when you can get a whole line
Only calculate once if possible
Cache frequently used functions and objects
Dice your data into smaller pieces
Use bitArrays instead of Arrays when possible
Pre-initialize arrays when final size is known
Recursive functions can be faster
matchPattern is faster than findString
Do not use return, break, exit or continue
Use StringStream to build large strings
Use name values instead of strings when possible
Try not to use Execute function if there is an alternative
For Loop By Index Vs For Loop Through Collection Performance
For Loop Collect Vs For Loop Do Performance
Optimizing Particle Flow Script Operator For Loops For Speed
Using Bsearch For Fast Table Lookup