Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6426

Adding a interface to control entity ticking

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • all
    • Yes

      Minecraft server has severe performance issue since the 1.13 update, and according to cpu profiling, about half of the time is taken by entities.

      Server tps drops when a huge amount of entity ticks, then the whole world slows down, from players to entities.

      The traditional ways to reduce entity lag are to reduce its spawn rate, combine familiar entities.

      So I'm wondering if we can just slow down entities rather than the whole world, the server would perform better.

      If we can add an interface to control entity ticking, like adding a light-weight predicate and check it before the actual Entity::tick call (not an event), or adding an entire set of programmable TickList to let plugins control entity ticking process, for example lowering tick rate or even trying to tick them asynchronously.

            Unassigned Unassigned
            HenryRenYz Yz Ren
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: