wolfpld/tracy

attempt to tracy profile WPF app that being rendered to it from D3D11 (via C++ DLL) breaks interop to WPF

Open

#427 opened on Jul 15, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C++ (474 forks)batch import
help wantedquestionwindows

Repository metrics

Stars
 (6,366 stars)
PR merge metrics
 (Avg merge 4d) (29 merged PRs in 30d)

Description

Hi,

I'm having some weird issue, i'll try to describe the problem:

I have WPF (.NET framework v4.8) application that it's main UI is being rendered from an unmanaged C++ DLL. The interop to WPD is performed via D3DImage (https://docs.microsoft.com/en-us/dotnet/api/system.windows.interop.d3dimage?view=windowsdesktop-6.0) and by having D3D11 Image passes to the image.

I will begin and say that currently the application is working properly & renders everything just fine.

My problem is every time I attempt to use Tracy Profiler to capture GPU data, specifically place in my code this line: tracyCtx = TracyD3D11Context(dev, devCtx);

The image on my WPF UI is no longer rendering. Attempting to debug this under RenderDoc shows the image is rendered correctly to the RenderTarget, so I assume there is something being done internally that somehow "mess" up the interop to WPF.

Can anyone think of what could be the possible cause for the problem ? Kinda out of ideas as to what can cause it...

Thanks in advanced, Idan

Contributor guide