Contents
Class SnapshotSystems
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.system.SnapshotSystems
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMakes sure the snapshot buffer component exists on entities that need itstatic classUpdates entities' snapshot buffers with their current state every tick.static classHandles TPS/history length changesstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longThe amount of history to store about an entity. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
HISTORY_LENGTH_NS
public static long HISTORY_LENGTH_NSThe amount of history to store about an entity.This effectively sets the upper bound of the amount of latency the server is willing to forgive when it comes interactions like combat.
Increasing this value will allow players with higher latency to have their hits land when they visually land on their screen. Changing this value has other side-effects that should be considered as well:
- Increasing the value increases the window someone can exploit
when cheating.
Having a larger window to work with allows for players attempting to cheat to have better chance of telling the server they hit a player by finding a position of the target in the history and claiming they hit them then.
- Increasing the value increase the amount of memory required for
every entity that requires snapshots.
This also applies to increasing the tps of the world.
- Decreasing the value punishes players with higher latency.
- Increasing the value increases the window someone can exploit
when cheating.
-
-
Constructor Details
-
SnapshotSystems
public SnapshotSystems()
-