ゲームのネットワークラグを軽減する

2021/04/29

Windows

t f B! P L

ゲームのネットワークラグを軽減する

概要

データグラム(UDPパケット)を高速I/Oまたは送信バッファを経由してデータを送信します。既定設定では1024バイト未満ののパケットのみ高速I/Oを利用します。

マイクロソフト ドキュメントより

Windows Server Rolesの動作においては、1024バイトが最良のパフォーマンス結果とのことです。 データグラムサイズ(UDPパケットサイズ)が 1024バイトを超えるため、レジストリを変更して高速I/Oを利用するように変更します。以前、MS KB Q235257に解説されてましたがページが消えているようです。残念です。

https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc781532(v=ws.10)#fastsenddatagramthreshold

>>
FastSendDatagramThreshold
Value Type: REG_DWORD
Default: 1024
Description: Datagrams smaller than the value of this parameter go through the fast I/O path or are buffered on send. Larger ones are held until the datagram is actually sent. The default value was found by testing to be the best overall value for performance. Fast I/O means copying data and bypassing the I/O subsystem, instead of mapping memory and going through the I/O subsystem. This is advantageous for small amounts of data. Changing this value is not generally recommended.
<<

設定するレジストリ

[HKLM\System\CurrentControlSet\Services\AFD\Parameters] を開きます。

  1. レジストリエディターを管理者権限で起動します。
  2. [HKLM\System\CurrentControlSet\Services\AFD\Parameters] を開きます。
  3. DWORD (32ビット)値を新規作成します。
  4. 名前を FastSendDatagramThreshold にして、値データを1500 (10進数) にします。
  5. 最後にWindowsを再起動します。

QooQ