让 Windows 远程桌面连接更加流畅

原标题 - Pushing Remote FX to its limits.


据原作者描述,他们可以以很低的操控延迟获得 60fps (1080p) 的远程连接体验。

打开 RDP Host 的组策略编辑器

  • Computer Configuration > Administrative Template > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections

    • Select RDP Transfer Protocols 改为 Enabled
      • Set Transport Type 修改为 Use both UDP and TCP
  • Computer Configuration > Administrative Template > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment

    • Use hardware graphics adapters for all Remote Desktop Services sessions 改为 Enabled
    • Prioritize H.264/AVC 444 graphics mode for Remote Desktop Connections 改为 Enabled
    • Configure H.264/AVC hardware encoding for Remote Desktop Connections 改为 Enabled
      • *此处原文有将选项 Prefer AVC hardware encoding 修改为 **Always attempt*,但在我系统上没发现这个选项
    • Configure compression for RemoteFX data 改为 Enabled
      • RDP compression algorithem 修改为 Do not use an RDP compressiono algorithm
    • Configure image quality for RemoteFX Adaptive Graphics 改为 Enabled
      • Image Quality 修改为 High
    • Enable RemoteFX encoding for RemoteFX clients designed for Windows Server 2008 R2 SP1 改为 Enabled
  • Computer Configuration > Administrative Template > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Remote Session Environment > RemoteFX for Windows Server 2008 R2

    • Configure RemoteFX 改为 Enabled
    • Optimize visual experience when using RemoteFX 改为 Enabled
      • Screen capture rate (frames per second) 修改为 Highest (best quality)
      • Screen Image Quality 修改为 Highest (best quality)
    • Optimize visual experience for Remote Desktop Service Sessions 改为 Enabled
      • Visual experience 修改为 Rich multimedia

应用以下注册表进一步优化 RemoteFX

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; ------ TurboRemoteFXHost.reg ------
Windows Registry Editor Version 5.00

; Sets 60 FPS limit on RDP
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations]
"DWMFRAMEINTERVAL"=dword:0000000f

;Increase Windows Responsivness
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile]
"SystemResponsiveness"=dword:00000000

;Removes the artificial latency delay for RDP.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
"InteractiveDelay"=dword:00000000

;Disables Windows Network Throtelling.
;Enables large MTU packets.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]
"DisableBandwidthThrottling"=dword:00000001
"DisableLargeMtu"=dword:00000000