Extrapolate

Extrapolate 是一款 Minecraft 模组,它通过对实体位置进行外推(extrapolation)而非插值(interpolation),来在存在服务器延迟的情况下获得更精确的实体位置。
配置
- Enable mod:启用模组
- Weight of extrapolation:外推权重(说明见下文)
- disableSmooth:禁用外推和插值,仅在每个 tick 更新一次位置;如果你的帧率高于 20 fps,这会导致实体抖动
- onlyHitbox:仅对碰撞箱进行外推以用于技术用途,保持实体正常渲染不受影响,仍使用原版插值
- renderPhysics:实验性功能:使用来自碰撞箱的相同位置数据来渲染实体,以避免因位置数据包到达时间波动而导致的抖动
- debug:如果你是开发者,请使用此选项:)
工作原理
原版通常通过插值来平滑实体的运动,即在每个 tick(每秒 20 次)之间计算中间位置,但这会在 ping 的基础上额外增加最多 50ms 的延迟。
本模组通过根据当前和上一时刻的位置来预测实体位置,从而使实体位置更加实时。预测的程度/权重是可配置的。
建议将权重设置为较小值(<0.4),这样可以在不导致实体速度变化时产生抖动的情况下改善延迟。
Extrapolate

Extrapolate is a Minecraft mod which extrapolates entity position instead of interpolates to get a more accurate entity pos despite server delay
Config
- Enable mod
- Weight of extrapolation (explained below)
- disableSmooth: disable extrapolation and interpolation, only update the position each tick, which cause entity to jitter if ur having fps >20
- onlyHitbox: only extrapolates hitbox for technical use, keeping normal entity rendering unchanged with vanilla interpolation
- renderPhysics: experimental: uses the same position data from hitbox to render entity, to avoid jittering caused by fluctuating positional packet arrival timings
- debug: use it if ur a dev:)
How does it work?
Instead of interpolating the position of entities, which mean smoothen the motion of entities by calculating inbetween position between each tick (20/s), but it adds up to 50ms delay on top of ping
This mod improves this by predicting the position of entities based on the current and last position, making entity position more up to date. How much does it predict/ weight is configurable.
Small values (<0.4) of weight is recommended as it can improve the latency without causing the entity to jitter when their velocity changes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧