Skip to content

Enable h/w acceleration in RDP #3215

Closed

Description

@vatsan-madhavan

if (m_rgpDisplays.GetCount() == 0 || m_fNonLocalDevicePresent)
{
//
// No display - no acceleration
//
caps = GetNoHardwareAccelerationCaps();

Remove that check for m_fNonLocalDevicePresent and DirectX h/w acceleration in RDP will start working.

In general, the overall role of m_fNonLocalDevicePresent may have to be re-evaluated and updated. <>

This limitation (is s/w rendering in RDP) is no longer needed in WDDM driver model, though it made sense historically when XPDM drivers were in the mix in the ecosystem for .NET Framework.

Stretch goal: Prove this works well and is safe in .NET 5 and then port the change to .NET 4.8. All the remote working software devs who use Visual Studio over RDP would love the improvement.

/cc @fabiant3 , @SamBent - I’d be happy to contribute if you are open to take this change. Not sure whether the timing is right wrt .NET 5 schedule etc.

Activity

  1. fabiant3 commented on Jul 6, 2020

    @fabiant3
    Contributor

    @vatsan-madhavan - appreciate the help and we should look at doing this post NET5.

  2. added this to the Future milestone on Jul 6, 2020
  3. added
    Enhancement Requested
    on Jul 6, 2020
  4. SKARFX commented on Oct 5, 2020

    @SKARFX

    Hi! We are using DirectX in our application (over RDP). How long to wait for a solution for .NET 4.8?

  5. omariom commented on Mar 31, 2021

    @omariom
    Contributor

    image

  6. JamieM942 commented on Sep 3, 2022

    @JamieM942

    Our company would also like this enhancement request. I find it weird how RDP has never done this yet Citrix’s protocol can achieve this.

  7. vatsan-madhavan commented on Sep 13, 2022

    @vatsan-madhavan
    MemberAuthor

    It's been a couple of years since I opened original issue, but I distinctly remember doing the analysis and the fix was indeed a simple one and I don't recall being worried about potential regressions. In the past, I've done this analysis more than once (about 2-3 years prior to opening the issue, IIRC) and I concluded the same thing - that the fix was both simple and not likely to cause breakages. The best way to be sure is, of course, to run regression tests within RDP.

    For .NET, I don't think that an extra defensive quirk is called for. If you port this to .NET Framework, then you should definitely quirk it (I added some plumbing in the renderer to enable support for the NET Framework's AppContext quirking infrastructure a long time ago - so these sorts of fixes can be quirked cleanly I believe).

  8. removed their assignment
    on Sep 13, 2022
  9. self-assigned this
    on Mar 29, 2023
  10. ghost removed this from the Future milestone on Aug 11, 2023
  11. ghost locked as resolved and limited conversation to collaborators on Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Enhancement Requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions