Class SnapshotSystems

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.system.SnapshotSystems

public class SnapshotSystems extends Object
  • Field Details

    • HISTORY_LENGTH_NS

      public static long HISTORY_LENGTH_NS
      The 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.
  • Constructor Details

    • SnapshotSystems

      public SnapshotSystems()