• Advertisement
Sign in to follow this  

Swapchain presentation freezing issue

This topic is 527 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

Hi.

I found that when creating Swapchain with swapEffect = discard, then dispose it and create new swapchain with swapEffect = flipsequental, then dispose it and create again swapchain with swapeffect = discard,

It will stop presenting anything on the screen and will be no error. Image just stop updating.

But if I create new swapchain with swapEffect = flipsequental, presenting starts working again, but from that moment you cannot see anything if you create swapchain with discard effect during current lifecycle.
Seems this issue causing only for discard -> flipsequental -> discard sequence.

Could someone say is this by design?

Does anyone faced similar issue in DirectX 11?

 

P.S. I forgot to mention that I did this with Desktop window and Windows 8.1/10.

Edited by BlackJoker

Share this post


Link to post
Share on other sites
Advertisement

Yes, this is by design. Discard swapchains work by copying into a surface that gets used to render the window. Flip sequential swapchains work by replacing that surface. Once you've replaced that surface, the compositor doesn't fall back to using the previous one anymore. You need to recycle the window to get new discard contents to show up again.

Share this post


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

  • Advertisement