microsoft / WPFDXInterop

Repo for WPF DX Interop support
MIT License
307 stars 98 forks source link

Sample not working on Remote Desktop #20

Open nikobarli opened 8 years ago

nikobarli commented 8 years ago

When I ran the sample (using winsdk build) using a remote desktop connection (client Win8.1, server Win8.1), the cube is not shown. Also the magnifier is lagging from the cursor very much.

image

dotMorten commented 8 years ago

We had to do a lot of changes to how we render to D3DImage when running remote desktop / WARP. Also animations should be reduced to avoid locking up the window (we remove fading and reduce framerate to 30fps - according to the RDP team, somehow frozen windows caused by heavy animation is by design).

I doubt most of the RDP work has been done here yet.

nikobarli commented 8 years ago

Thanks for the information.

The problem I reported above is when I connected the RDP client at my home to the server at my office separated by approx. 15ms internet latency. Today I brought the same RDP client PC to the office and tried again. Now the cube is showing normally.

Once the cube is showing, then I minimized the RDP window, then restored it again. Now the cube disappeared again ! Resizing the application window made the cube shown again. This is reproducible 100% (also tried with another Win7 RDP client).

Do these issues lie on D3DImage layer or do they just due to some bugs inside the new D3D11Image implementation ?

dotMorten commented 8 years ago

D3DImage works in RDP, so it must be the implementation used here.

tseval commented 7 years ago

I have the same problem. It appears to be working intermittently over RPP, and I can't see that any of the DirectX calls are failing, it just doesn't draw anything.

There hasn't been any checkins for a couple of years, is this project still alive? Is there another way to integrate DX11 with WPF?

nikobarli commented 7 years ago

Is there another way to integrate DX11 with WPF?

See my comment here: https://github.com/Microsoft/WPFDXInterop/issues/21

"I finally wrote my own interop class, taking example from http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/437/Direct3D-10-11-Direct2D-in-WPF.aspx and http://marcangers.com/category/direct3d/ to meet my performance requirements. Still, it is slow when used from remote desktop due to the fallback to software rendering. "

holance commented 7 years ago

@tseval Try Helixtoolkit SharpDX if it is what you are looking for.