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?