Skip to content

Commit

Permalink
Windows DirectComposition: fix UI flickering with some GPU cards/drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Jan 28, 2024
1 parent ce98651 commit e5294ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vstgui/lib/platform/win32/win32directcomposition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ bool Factory::Impl::createD3D11Device ()
D3D_FEATURE_LEVEL_9_3, D3D_FEATURE_LEVEL_9_2,
D3D_FEATURE_LEVEL_9_1};
UINT creationFlags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
// fix UI flickering with some GPU cards/drivers
creationFlags |= D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS;
#if DEBUG
creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif
Expand Down

0 comments on commit e5294ca

Please sign in to comment.