ToolChest
10-22-2002, 03:56 AM
I went home last night and commented out my entire rendering loop in an attempt to locate any potential fill rate issues (unnecessarily clearing the screen,…). Now I calculated my frame rate at over 1017 frames (in theory).
1017.2… = (800,000,000 pixels/s) / (1024 * 768)
Right?
Anyway with the code in the loop commented out I get like +50m frames a second (to bad the whole game doesn’t run this fast http://www.opengl.org/discussion_boards/ubb/smile.gif). Now I only uncomment SwapBuffers and the frame rate drops to 700. Wth, I thought that the buffer swap was a pointer swap (obviously not). Even if its not I still am taking a big hit for a memcpy that (hopefully) is taking place entirely in the card. Is there anything I could be doing wrong? SwapBuffers is the only call in the loop and I’m running the app in windowed mode, so technically I’m not even using the whole 1024x768…
Thanks…
John.
1017.2… = (800,000,000 pixels/s) / (1024 * 768)
Right?
Anyway with the code in the loop commented out I get like +50m frames a second (to bad the whole game doesn’t run this fast http://www.opengl.org/discussion_boards/ubb/smile.gif). Now I only uncomment SwapBuffers and the frame rate drops to 700. Wth, I thought that the buffer swap was a pointer swap (obviously not). Even if its not I still am taking a big hit for a memcpy that (hopefully) is taking place entirely in the card. Is there anything I could be doing wrong? SwapBuffers is the only call in the loop and I’m running the app in windowed mode, so technically I’m not even using the whole 1024x768…
Thanks…
John.