Best practices for Alt-Tab support in a DirectX app?

前端 未结 4 1409
醉话见心
醉话见心 2021-01-30 10:54

When writing DirectX applications, obviously it\'s desirable to support the user suspending the application via Alt-Tab in a way that\'s fast and e

4条回答
  •  一生所求
    2021-01-30 11:15

    All serious D3D apps should be able to handle lost devices as this is something that can happen for a variety of reasons.

    In DX10 under Vista there is a new "Timeout Detection and Recovery" feature that makes it common in my experience for graphics devices to be reset which would cause a lost device for your app. This seems to be improving as drivers mature but you need to handle it anyway.

提交回复
热议问题