Unfortunately, even after hours of optimizing my models and code, it still drops to 25 fps with many mechs on-screen at once.
The total mech model is 3770 triangles, and is drawn in a 3-5 pass render:
- Depth (Prevents overdraw of pixels but takes an extra pass)
- Diffuse
- Specular
- Emission
- Red Glow (Only done for submodels that need it)
So it's doing about 4x that in total triangles per complete mech!
I'm going to ask around and see if anybody who knows how to do it is interested in trying to reduce the poly-count further without losing quality.
EditGetting rid of the depth pass helped a lot! Hooray for stupid!