Kadoba wrote:60-40 fps sounds normal for vsync assuming the refresh rate on your monitor is 60Hz. Do you understand how vsync works?
I understand perfectly how vsync works.
My game shouldn't dip below 60fps however. It only does this with huge tiled maps.
Another interesting thing is I am using this little profiler - viewtopic.php?f=3&t=9387
What it's showing me is that the ATL is taking about 50% of the time in drawing. I'm not really sure why. I would have thought it was only drawing in the draw range (which is essentially the screen) -- So it shouldn't be taking a whole lot of time. There's a possibility you wrote a proper way to render the map that doesn't take that much time and I'm just not using it correctly.
I do have autoDrawRange set and I did set the spritebatch property on the map to true.
The only reason I said to make sure you can run the program with vsync on is because when it's turned off and the card is able to go all out it's usually on the order of 700-900 fps -- Which wouldn't really show me where any slow down was. With vsync on, dipping below 60fps is showing me there's a problem and a slow down.
At this stage any slow down that might be caused by my code isn't as important since it it's not bearing the brunt of the processing time.
Would you mind looking at the drawing code to see if I'm drawing with the ATL properly?