Swapchain presentation freezing issue

Started by
1 comment, last by BlackJoker 7 years, 5 months ago

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.

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.

Hah. That really interesting. I started thinking already that this is a bug :)

This topic is closed to new replies.

Advertisement