Jump to content
  • Advertisement
Sign in to follow this  
ArgusMaker

[DX9] frames per second

This topic is 2542 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

Hi :D
How can i increase my fps?
I made a win32 application with dx9 rendering methods.
my WinMain function registers a window class, creates the window and then runs an infinite while loop like this one:


while(true)
{
g_pd3dDevice->BeginScene();
//some render
g_pd3dDevice->EndScene();
g_pd3dDevice->Present(NULL,NULL,NULL,NULL);

TranslateMessage(&messages);
DispatchMessage(&messages);
PeekMessage(&messages,hwnd,0,0,true);
}


My application maintains 60 fps.. but i didn't place any limitation, so how can i increase them?

Share this post


Link to post
Share on other sites
Advertisement
You'll have to turn off V-Sync.

EDIT: here's how...

[color=#1C2837][size=2]D3DPRESENT_PARAMETERS d3dPP;
d3dPP.PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!