Reputation: 5678
I am using the window handle of a Windows.Forms.Control to draw 3D data using the Vortice library.
It takes about 1 or 2 seconds to draw one frame which is very slow of course. The individual draws are very fast though (analyzed using the graphics debugger).
The same code works fine when using the window handle of a dedicated Form. It also works fine in WinUI (but then, the swap chain is also initialized differently of course).
This might be trivial so any suggestions are welcome.
Upvotes: 1
Views: 273
Reputation: 5678
For whatever reason we were using InvalidateRect instead of Invalidate and that caused the flickering and stuttering.
Upvotes: 0