After a lot of examining performance issues with my directx11-application, I came to a conclusion (could have been come earlier to this conclusion, but anyway). After I redused the app just to the "outer" directx, I found what is slowing down everything so much:
My SwapChain->Present(0,0)!When calling it without drawing anything I already drop down to 600-700 fps. Then, when using
ClearDepthStencilView(depthStencilView, D3D11_CLEAR_DEPTH|D3D11_CLEAR_STENCIL, 1.0f, 0);the FPS are already down to 300-350.
Now I would like to know: Is this right? I got the code for the swapchain and the creation of the device from a tutorial, so I can't really say what is up with it. Those 3 lines have to be called to render properly anyway, and my GPU is pretty good ( it can run BF3 and stuff np ).
So I'm suspicious about this code for the swapchain. Before I post all of this, can you confirm that 300 on this 3 lines is way to little?
(Without those 3 lines I do have 250,000)
Edited by gnomgrol, 14 August 2012 - 12:06 PM.