Sign in to follow this  
ArgusMaker

[DX9] frames per second

Recommended Posts

ArgusMaker    102
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:

[code]
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);
}[/code]

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
gsamour    140
You'll have to turn off V-Sync.

EDIT: here's how...

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this