Ticks/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
(Created page with "由于游戏以这种方式工作,因此在按下和激活之间可能需要长达 50ms 的延迟。")
(Created page with "== 旋转Tick ==")
Line 20: Line 20:




== 旋转Tick ==
<div lang="en" dir="ltr" class="mw-content-ltr">
== Turn Tick ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 14:16, 23 August 2021

Other languages:

Ticks是 Minecraft 中的标准时间单位,1 Tick等于 50 毫秒

wiki上关于Tick的文章



Tick速度

物理引擎以每秒20 Ticks的速度运行,这意味着游戏的物理引擎每50毫秒更新一次。

这包括玩家的位置和速度、环境和实体。


游戏中的动作都是在每次Tick结束时执行的,无论它们被按下的时间或顺序如何。

由于游戏以这种方式工作,因此在按下和激活之间可能需要长达 50ms 的延迟。


旋转Tick

Mouse Movement is not inherently tied to tickrate, but rather the framerate.

However, the game has to keep a copy of the player's rotation for movement calculations, which it updates once every tick. The moment the player's rotation is copied is called the turn tick.


From the player's perspective, there is no way to control when the turn tick happens. This has a severe impact on turn-based jumps, which become partially luck-based as a result: given the same (smooth) turning sequence, the player's resulting movement could be quite different.


One solution is to turn instantly every 50ms to land precisely on the wanted angle. This is feasible for simple turn strats such as 45° Strafes, but not for more complex strats that would require smooth turning.