for (int i = -(mapwidth / 2); i < (mapwidth/2); i++)
{
for (int j = -(mapheight/2); j < (mapheight/2); j++)
{
modelPosition = new Vector3((i * 10.0f)+5.0f, 0.0f, (j * 10.0f));
DrawModel(myModel);
}
}
I noticed that if I have only one model in view (the camera is zoomed way in) or I show the entire grid of objects the time elapsed between frames does not change. The time elapsed between frames does change if I increase or decrease the number of objects drawn though. This leads me to believe that the framework is drawing every object whether or not it is visible. Can someone shed light on how to avoid this performance problem
Another concern I have is that when I draw 20x20 of these objects (400) I get about 16 FPS on my machine. Thats only 9600 faces per frame and at 16 FPS that equates to a pipeline of about 154k polys a second. I have a rig setup with: 3.2ghz P4, 2 GB RAM, Geforce 6800 GT video card. Seems kinda slow doesn't it