DirectX 10 video switching and performance

In DirectX 10, does switching between full-screen and window modes of any kind of auxiliary data occur, for example, to recreate textures and / or vertex buffers?

In other words, can I create an application that is designed to "switch" a lot between windowed mode and fullscreen mode without losing performance when switching?

+4
source share
2 answers

DirectX10 has DXGI. You are using a swap chain. The exchange chain buffer needs to be changed, so there is some overhead (of course), but it is supposedly optimized. What bothers me causes epileptic seizures for your users by switching viewing modes.

http://msdn.microsoft.com/en-us/library/bb205075(VS.85).aspx

+6
source

In D3D10, you do not need to restore your textures, buffers, or any D3D resources on the mode switch. One notable exception is the Backpackback clipboard links that need to be updated after calling ResizeBuffers (which should be done for optimal full-screen performance), but this is not so important for performance.

However, this does not mean that changing the regime is cheap. The mode change operation itself is very expensive both for your application and for the entire system (especially in Vista, DWM must be restarted). Win7 has improved significantly, so I suggest you play with it and see if it meets your performance requirements, but don't expect an instant transition.

+2
source

All Articles