This topic is now archived and is closed to further replies.

yet another fps question

This topic is 5778 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I dont understand this. I juste made a timer class (somewhat based on the DXUtil_Timer function in dxutil.cpp file). It uses QueryPerformanceFrequency if it''s available, timeGetTime() if not. Anyway, I tested my timer function on my blank opengl framework (it does nothing but a color clear each frame). I got 71.9fps@640x480:16. (I tested it on nehe lesson1, and got the exact same result). Then, I ran multiple DXSDK samples (vertex shader, lighting, clipmirror, etc). With all of them, when I resized the window to 640x480, I got a fps count of over 160(with as much as 210fps). And I also realized that I used the same method to get the fps count as they did. So what the deal with that? D3D seems a least two times faster. Is there something I''m missing?

Share this post

Link to post
Share on other sites
wow, thank you
I get over 350 fps now.

I disabled the vertical sync (I put it "off by default")

But let me ask this.
The main message loop is now updated 350 times per second, but is the monitor really updated 350 times per second as well?

I think it''s not. I dont think if it relevant, but my monitor can go as high as 72 HZ while using a 1600x1200 desktop (my current desktop resolution).
so, if I understand correctly, even if my application displays 350 fps, my window is only updated 72 times per second.

Also, with the vertical syns, what made the application wait?
Is it the SwapBuffer? It''s the only thing I can think of.

In real games, what fps count is really used? the with vsync one, or the without vsync ?

thank you for your time

Share this post

Link to post
Share on other sites
You''re correct, SwapBuffers is where the driver waits for the vertical retrace.

And you''re correct again, with VSync off your application is refreshing 300+ times, but you''re not seeing most of those refreshes, your monitor is only showing you 70, or whatever the current refresh rate is.

- outRider -

Share this post

Link to post
Share on other sites