Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DirectX 10 video mode switching and performance

In a DirectX 10 application, does switching between fullscreen and windowed mode incur any sort of overhead like having to recreate textures and/or vertexbuffers?

In other words, can I build an application that is designed to do "a lot" of switching between windowed mode and fullscreen mode without having to suffer a performance hit when the switches occur?

like image 312
korona Avatar asked Jan 23 '23 20:01

korona


1 Answers

In DirectX10 there is DXGI. You use a swap chain. The buffer of the swap chain will need to be resized so there is some overhead (of course) but it is supposedly optimized. The thing I would be worried about is causing epileptic seizures on your users by switching view modes.

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

like image 183
Chap Avatar answered Jan 26 '23 10:01

Chap