I am in the middle of my largest Papervision (and as3dmod
) project so far, and I have been forced to really optimize everywhere possible. I have found it a bit hard sometimes to understand what going on “inside” Papervision – simply what performs the best?
I have found a few tips and tricks I just want to share with you. Some of them I found through other blog posts and comments.
- When animating advanced 3D object (like large Planes and Cubes) a good trick is to set the stage quality to LOW og MEDIUM while animating, this boost performance.
- If possible, use sizes for your materials which is diviseble with 2 (like with Filters) – such as 128, 256, 1024. This performs a lot faster than other numbers in my findings.
- Avoid smooth, interactive and animated when you can.
- Use as few segments as possible. I use 6 x 6 segments on my most advanced stuff. This is performance trick number one – you should really try keeping segments as low as you can (I know it has to look good still)
- Use the smallest viewport possible – sometimes you need fullscreen, but when you don’t – be sure to set the viewport size as low as you can.
- “One of the slowest things flash does is package and class look-ups” – take a look here if you like putting your math away in utility classes!