Jump to content
  • Advertisement
Sign in to follow this  

S_PRESENT_OCCLUDED, correct handling?

This topic is 3043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I have Direct3D9Ex device in my program which doesn't perform any draw call but simply converts D3D10 Surface to Direct3D9 (WPF D3DImage) using shared surfaces mechanism and DXGI. But when I'm presing "Windows+L" (locking my workstation) and return bask to desktop, it simply stops to convert. For some time I'm recieving S_PRESENT_OCCLUDED as an HRESULT of CheckDeviceState(NULL), but after a while it starts to return S_OK but nothing is changing. According to documentation, it is nor Device Lost and DeviceEx is rather stable from this point of view but I still don't know, how to handle this situation correctly.

SImply rerendering of image (after recieving S+OK) doesn't help but if I will continue rerender Image for each frame, after a whilr picture will apperar again. But I can't do rerendering for each frame every time (Program is attended to make rerendering only if necessary).

Is there a way to catch a moment when rerendering will succeded?

Any suggestion?

Thank you!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!