Suspending and resuming DirectX app in metro RRS feed

  • Question

  • Hello, I'm developing a DirectX game app in metro.

    I've a lot of textures, meshes, shader on the graphic card.

    What should I do when the game goes to background? Now I'm stopping the audio and I'm releasing my file handlers?

    Should I release the DirectX objects and put them back again when resuming?

    I've looked here (http://msdn.microsoft.com/en-us/library/windows/apps/hh994930.aspx) but there is no mention to DirectX resources.

    Thank you!

    Monday, October 1, 2012 2:33 PM


  • DirectX resources for WDDM drivers are virtualized, which means the OS handles the video memory management like it handles main memory. This is why Direct3D 11 doesn't have a "LOST DEVICE" error, although you may have to react to a 'DEVICE REMOVED' error when a video driver cashes or in some scenarios the physical video card is removed from the system while still running.

    • Marked as answer by Hugetto Tuesday, October 2, 2012 8:21 AM
    Monday, October 1, 2012 9:30 PM