Skip to content

Enable h/w acceleration in RDP #3215

Closed
@vatsan-madhavan

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.

Metadata

Metadata

Assignees

Labels

Enhancement RequestedProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions