Edited by sunnysideup, 02 November 2012 - 05:23 PM.
#1 Members - Reputation: 96
Posted 02 November 2012 - 05:21 PM
#3 GDNet+ - Reputation: 472
Posted 03 November 2012 - 11:19 AM
BufferCount = 2,
Sorry to contradict you here Stuntdk. If you read the MSDN documentation it says :
BufferCount
Type: UINT
A value that describes the number of buffers in the swap chain. When you call IDXGIFactory::CreateSwapChain to create a full-screen swap chain, you typically include the front buffer in this value. For more information about swap-chain buffers, see Remarks.
That implies that including the front buffer your BufferCount = 1, because you typically include the front buffer in this value. Also, if BufferCount was the back-buffer count, then you should be able to set it to zero, which you can't. If you try setting it to zero, your application will throw an invalid call exception.
Edited by Gavin Williams, 03 November 2012 - 11:38 AM.
#4 Members - Reputation: 291
Posted 03 November 2012 - 01:02 PM
I got my information from reading Frank D. Luna "3D Game Programming With DirectX11".
He describes the BufferCount as the number of backbuffers, and throughout all his code use only the value of 1 (at least as far as I've gotten into it)
Could there perhaps be a difference whether you are using windowed or fullscreen mode?
Update:
Actually I just checked the RasterTek tutorials and Braynzar tutorials, and they both describe the BufferCount as the number of backbuffers and set it to 1 for double buffering.
I also see the somewhat conflicting explanation on MSDN, so hopefully an expert can explain some of this?
Edited by Stuntdk, 03 November 2012 - 01:08 PM.
#5 Members - Reputation: 1988
Posted 03 November 2012 - 03:32 PM
If you mess with the settings to override this behavior, and want to manually make sure you triple-buffer, then maybe you should make it 2..
#6 GDNet+ - Reputation: 472
Posted 03 November 2012 - 04:35 PM
obj:17 Direct3D11 Texture2D 1 1366 768
obj:7 DXGI Surface 0 1366 768
So that doesn't help me to confirm anything. If 1 is double buffering, how do you use a single buffer ?
#7 Members - Reputation: 1988
Posted 03 November 2012 - 05:27 PM
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205075(v=vs.85).aspx has some more info under Presentation, which says there must always be a back-buffer and a front-buffer. Perhaps the documentation just has it wrong, depending on what the "front buffer" actually means.






