I'm currently developing a game using OpenTK for rendering; C#, .Net 4.0, OpenGL 2.
Running maximized (not full screen, but taking up all the available screen space) on 1280x1024 resolution, I'm seeing about 400 FPS average. On 1680x1050 resolution, I'm seeing about 315 FPS average. Despite this high frame-rate, I'm experiencing intermittent stuttering.
Basically, for about 3 full seconds, the rendering will visibly stutter, then it is perfectly smooth for about 0.5 to 1 seconds. This cycle repeats forever.
There is no frame-rate drop showing on my FPS counter in accordance with the stuttering. I'm calculating the frame rate by counting the frames until I reach a desired update frequency, then calculating the frame-rate using the number of ticks in a second, the number of ticks in the update frequency, and the number of frames that were counted. With this method, I only see an update once every split second, but I've never seen the frame-rate drop far below where I would expect it to be.
The issue is exacerbated significantly if I drag the game window to my second display.
Running the application in a Release build did not resolve the issue.
I performance profiled the application using ANTS by redgate. This pointed out a good few issues that I've since fixed.
Any suggestions here?