Question: Is it OK to draw a Direct2D render target at the same time as it is being drawn to? #5566
Unanswered
benstevens48
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Specifically, I have a Win2D CanvasRenderTarget which is being rendered to a swap chain on a background thread, and I am drawing to the CanvasRenderTarget on the UI thread. So it's possible that the CanvasRenderTarget may have an open CanvasDrawingSession (which may be closed at any point) while it itself is being drawn to the swap chain. I did a few tests regarding drawing a CanvasRenderTarget with an open CanvasDrawingSession and it seems OK, but I don't know if there are any timing issues I should be away of when using multiple threads. Looking for someone with good knowledge of Direct2D who can provide a definitive answer.
Beta Was this translation helpful? Give feedback.
All reactions