Skip to main content
gamedev.net
🔒 Locked

Frames per Second..

Started by Snash Jul 21, 2002 at 7:01 PM 2 replies 600+ views
Original Post
Snash
Snash
I''ve Created a simple program which displays a Pink bagground and some text. In window mode, I get around 1000 FPS, but If i switch to Fullscreen mode, i only get around 60-70 FPS.. Is this normal? thanks
Evil Bill
Evil Bill
Yep.
In windowed mode, the two buffers are being copied, byte by byte. This happens as fast as the CPU / GPU can do it, although you''ll only actually see 60 of those frames (if your monitor is at 60Hz), because the monitor cant refresh that fast.
In fullscreen, the two buffers are page flipped (unless you specify otherwise). This causes the screen to be updated at the speed of the monitor (60Hz or 60FPS).
When you add more detail to your scene, and get < 60 FPS, you''ll see that the program runs faster in fullscreen mode because of the page flipping (two pointers [4-byte values] being exchanged instead of thousands for every pixel).

HTH, Steve

Steve
DirectX Programmer
Soon to be the new Bill Gates
Member of the Unban Mindwipe Society (UMWS)
Snash
Snash
Well I fixed it myself. after reading the SDK doc I found out that in fullscreen, your Frames Per Second can''t go higher than your Monitor refreshrate

But you can make it do by filling the D3D Parameter:

d3dpp.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.