AB4D Forum
Using SwapChainPanel - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.DXEngine (https://forum.ab4d.com/forumdisplay.php?fid=11)
+--- Thread: Using SwapChainPanel (/showthread.php?tid=4284)



Using SwapChainPanel - anordfelth - 09-14-2021

Hi,

We're currently using DirectXOverlay as presentation mode to achieve the performance we need in our application. However, we now need to overlay WPF controls above our DirectX surface, but as the documentation states, this isn't possible with the current DXViewportView. We tried using DirectXImage as presentation mode, but the performance is not good enough with that mode.
Has any research/test been made to use SwapChainPanel (link) instead to support this use-case?


RE: Using SwapChainPanel - abenedik - 09-14-2021

Unfortunately, WPF does not support SwapChainPanel - this can be only used by UWP applications.

If you have performance issues maybe it is possible to optimize the usage of objects to provide faster rendering (for example using object instancing, freezing 3D objects to group them, etc.). I will contact you by email and if you are interested we can arrange a virtual meeting with screen sharing where you can show me your application and we can together run some benchmarking and rendering analysis (using DXEngineSnoop tool - https://www.ab4d.com/DirectX/3D/Diagnostics.aspx). This may provide some information on how to optimize the current rendering.