- Home /
Optimization/Performance for Flash export from Unity?
Hello,
I have a scene where I am rendering a grid. I use GL.TriangleStrip to render this grid ,because stage3d doesnt support GL.Line :(. Currently I make 800 total calls to GL.Vertex in between GL.Begin and GL.End to render the grid. This would imply roughly 800 tris as well. When I duplicate this grid 4 times my framerate drops in half. 3200 tris total is nothing these days especially when separated by several draw calls. Everything runs fine when exported to exe or webplayer but the .swf is hurting big time. I am not using any complex materials or anything like that and the math for rendering these lines is very minimalistic (no cross products, matrix mults, quaternion mults etc). Can anyone shed some light on this? I am using Unity 3.5 pro.
Your answer
![](https://koobas.hobune.stream/wayback/20220613090808im_/https://answers.unity.com/themes/thub/images/avi.jpg)