Skip to content

Commit

Permalink
update readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
cnbatch committed Nov 5, 2023
1 parent 033f182 commit 8e81b12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/parameters_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ First, the conclusion: the lower the number of the pattern, the faster the respo

- When the value is 0, the new time is simply multiplied by 2 based on the previous time.<br />
- When the value is 1, the new waiting time is only 1.5 times the previous time, not 2 times.<br />
In May 2023, the original author of KCP added a value of 2, similar to value 1. The difference is that value 1 uses the ‘previous time’ calculated by the current packet itself, while value 2 uses the average delay time calculated separately within KCP.<br />
- In May 2023, the original author of KCP added a value of 2, similar to value 1. The difference is that value 1 uses the ‘previous time’ calculated by the current packet itself, while value 2 uses the average delay time calculated separately within KCP.<br />
That's why this page was mentioned earlier that ‘kcp_nodelay=2 can make the network latency jitter smoother.’

`kcp_interval` refers to the `internal` variable, the update interval of KCP.
Expand Down
2 changes: 1 addition & 1 deletion docs/parameters_zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
`kcp_nodelay` 指的是 KCP 的 `nodelay` 变量,用于选择超时重传等待时长的增长速度。原本只有 0、1 之分,0 表示不使用 KCP 自身的快速重传,1 表示启用。<br />
- 数值为 0,则简单叠加,即新的时间是上一次时间的简单乘 2。<br />
- 数值为 1,表示新的等待时间仅为上一次时间乘 1.5,而不是2。<br />
2023 年 5 月,KCP 原作者又增加了数值 2,类似于数值 1。区别在于,数值 1 所用的“上一次时间”来自于当前数据包自己统计的数值,而数值 2 则使用 KCP 内部单独计算的平均延迟时间。<br />
- 2023 年 5 月,KCP 原作者又增加了数值 2,类似于数值 1。区别在于,数值 1 所用的“上一次时间”来自于当前数据包自己统计的数值,而数值 2 则使用 KCP 内部单独计算的平均延迟时间。<br />
这就是为什么前面提到过“kcp_nodelay=2 可使延迟抖动更为平滑”。

`kcp_interval` 指的是 KCP 内部更新间隔,`interval` 变量。
Expand Down

0 comments on commit 8e81b12

Please sign in to comment.