Split views (Restored)
Posted: Tue Jul 02, 2024 5:31 am
I have a couple of questions.
1) We have two controls on a form. We noticed if the split view is disabled and we are only drawing to one of the CAD controls we didn't see a significant performance boost. Is this expected?
2) Is there a way I could update the model via axKernCADnetFront.UpdateView() from a non gui thread? A large part of the performance problem is not that KC is taking too long to draw. It's that KC is one of the many components that has to update. So if KC requires 200ms for each draw and we want to draw at 4Hz then KZ would be trying to utilizing 80% of the gui thread. 4-5Hz redraw should satisfy our requirements but only if it doesn't impede our other controls. Do you know of any way to safely decouple the two, is it possible for an activex control to draw outside the .Net GUI thread without major ramifications? Or is it possible to render to an offscreen bitmap on a separate thread then just use the gui thread to update the screen from the bitmap.
JM
1) We have two controls on a form. We noticed if the split view is disabled and we are only drawing to one of the CAD controls we didn't see a significant performance boost. Is this expected?
2) Is there a way I could update the model via axKernCADnetFront.UpdateView() from a non gui thread? A large part of the performance problem is not that KC is taking too long to draw. It's that KC is one of the many components that has to update. So if KC requires 200ms for each draw and we want to draw at 4Hz then KZ would be trying to utilizing 80% of the gui thread. 4-5Hz redraw should satisfy our requirements but only if it doesn't impede our other controls. Do you know of any way to safely decouple the two, is it possible for an activex control to draw outside the .Net GUI thread without major ramifications? Or is it possible to render to an offscreen bitmap on a separate thread then just use the gui thread to update the screen from the bitmap.
JM