How do I force Remote Desktop to GPU?

RDP before Windows 10 had its own graphics driver to convert the rendered screen into network packets to send to the client, which used exclusively the CPU. Window 8 was the first to start using the GPU.

Since Windows 10 build 1511 and Windows Server 2016, RDP uses the AVC/H.264 codec in order to support larger screens than full HD. This codec uses the GPU, but only under certain conditions and for full desktop sessions, but otherwise falls back to using the CPU as before.

Using AVC/H.264 is now the default, but you may disable it using the Group Policy Editor [gpedit.msc] and drilling down to :
Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Remote Session Environment.

Set the following policies to Disabled, to disable the use of the AVC/H.264 codec :

  • Configure H.264/AVC hardware encoding for Remote Desktop connections
  • Prioritize H.264/AVC 444 Graphics mode for Remote Desktop connections

In any case, non-full desktop sessions should not currently use the GPU [but this could change without notice].

References :

The last reference contains this text :

This policy setting lets you enable H.264/AVC hardware encoding support for Remote Desktop Connections. When you enable hardware encoding, if an error occurs, we will attempt to use software encoding. If you disable or do not configure this policy, we will always use software encoding.

Hi Tommaso,

Thanks for the quick response. I've found this similar query after searching a lot:

//social.technet.microsoft.com/Forums/en-US/0d97a63b-9108-4446-9f8c-28b60d34da3e/rdp-gpu-hardware-acceleration

And also, you can test the group police editing in this blog: //blog.tedd.no/2015/06/23/optimizing-rdp-for-casual-use/

Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Hope either of them will be workable for you.

Thanks,

Jenny

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact .

Some software—such as CivilGEO’s engineering software—uses powerful display graphics and the GPU [Graphics Processing Unit] for quick rendering of the display. However, running engineering software and other graphics-heavy software in a Remote Desktop environment can be challenging for the principal reason that Microsoft Windows Remote Desktop does not allow GPU rendering by default. Starting up the graphics-heavy software can generate errors as the software attempts to initialize DirectX or OpenGL GPU display drivers on the host computer.

This issue can be easily corrected by modifying the group policy on the host computer to allow the use of GPU rendering during a Remote Desktop session.

To fix this issue, follow these steps:

  1. Display the Windows Run dialog box by pressing the Win + R keys [the Windows key and the “R” key at the same time] on the keyboard. This will display the Windows Run dialog box.
  2. Type gpedit.msc in the Open entry and then press the Enter key or click the [OK] button.
  3. The Local Group Policy Editor application will be displayed. Using the navigation panel on the left side, select Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment > RemoteFX for Windows Server as shown below.
  4. On the displayed panel, right-click the Configure RemoteFX entry and then select Edit from the displayed context menu.
  5. The following dialog box will be displayed. Select the Enabled radio button entry and then click the [OK] button.
  6. Select and right-click the Optimize visual experience when using RemoteFX entry and then select Edit from the displayed context menu.
  7. Select the Enabled radio button entry and then click on the [OK] button.
  8. Select and right-click the Optimize visual experience for Remote Desktop Service Sessions entry and then select Edit from the displayed context menu.
  9. Select the Enabled radio button entry and then click on the [OK] button.
  10. Notice that the Configure RemoteFX, Optimize visual experience when using RemoteFX and Optimize visual experience for Remote Desktop Service Sessions Group Policies status are set to Enabled.
  11. From the navigation panel on the left side, select Remote Session Environment as shown below.
  12. On the displayed panel, right-click the Use the hardware default graphics adapter for all Remote Desktop Services sessions entry and then select Edit from the displayed context menu.
  13. Select the Enabled radio button entry and then click on the [OK] button.
  14. Select and right-click the Configure compression for RemoteFX data entry and then select Edit from the displayed context menu.
  15. Select the Enabled radio button entry and then click on the [OK] button.
  16. Notice that the Use the hardware default graphics adapter for all Remote Desktop Services sessions and Configure compression for RemoteFX data Group Policies status are set to Enabled.
  17. Restart the host computer and the changes made to the Group Policy will take effect. The engineering software can then be operated from the host computer using Remote Desktop.

Video liên quan

Chủ Đề