I'm trying to display a terrain in my XNA game which is made of 512*512 vertices.
On my laptop, without the terrain, I have 60 FPS. When I display it, I'm running between 25 and 40 FPS.
I'm drawing 2 times the terrain: once for the camera, and once for the water reflection (I have an ocean).
I optimized a maximum my shaders, and I can tell you the lag doesn't come from here.
My draw function is only composed of this:
GraphicsDevice.DrawIndexedPrimitives(PrimitiveType.TriangleList, 0, 0, numberVertices, 0, numberIndices / 3);
I've seen a lot of people drawing million of faces in their game. I "only" have 512288 vertices to draw...
What could I do to optimize this function and get some more FPS?