OGL_PGR
11-04-2006, 03:00 AM
Hi.
I'm not rendering anything except for displaying FPS value of the screen. So I should be getting a very high frame rate( NVIDIA 6600GT ).
Inspite of just rendering the FPS value, frame rate is not even crossing 85( both in window mode and full-screen mode).
I'm calculating the frame rate like this:
// Process Application Loop
...
...
// get time elapsed since last call
elapsedSeconds = timer->GetElapsedSeconds();
//do motion updates
Update (elapsedSeconds);// Update The Counter
window.Draw (); // Draw Our Scene
//calculate frame rate for a total of 30 frames
window.frameNumber++;
window.totalTimeElapsed += elapsedSeconds;
if(window.frameNumber >= 30)
{
window.frameNumber = 0;
window.fps = 30.0f/window.totalTimeElapsed;
window.totalTimeElapsed = 0.0f;
}
SwapBuffers (window.hDC); // Swap Buffers (Double Buffering)
...
...
Where am I going wrong ??
Thanks in advance !
I'm not rendering anything except for displaying FPS value of the screen. So I should be getting a very high frame rate( NVIDIA 6600GT ).
Inspite of just rendering the FPS value, frame rate is not even crossing 85( both in window mode and full-screen mode).
I'm calculating the frame rate like this:
// Process Application Loop
...
...
// get time elapsed since last call
elapsedSeconds = timer->GetElapsedSeconds();
//do motion updates
Update (elapsedSeconds);// Update The Counter
window.Draw (); // Draw Our Scene
//calculate frame rate for a total of 30 frames
window.frameNumber++;
window.totalTimeElapsed += elapsedSeconds;
if(window.frameNumber >= 30)
{
window.frameNumber = 0;
window.fps = 30.0f/window.totalTimeElapsed;
window.totalTimeElapsed = 0.0f;
}
SwapBuffers (window.hDC); // Swap Buffers (Double Buffering)
...
...
Where am I going wrong ??
Thanks in advance !