1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

What is 'world - doTick'?

Discussion in 'Help' started by chansol, Aug 14, 2017.

  1. chansol

    chansol Spider Jockey

    Messages:
    32
    GitHub:
    ParkChanSol
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    As you can see in the source, Level->doTick has a big function. https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/Level.php#L683-L788

    It's quite logical this function shows up in the timings, and is only natural. It updates all blocks that should be updated, ticks all entities in the level and ticks all tiles if needed, and that every tick, which means twenty times per second. It's what makes the world keep reacting, and without it, basically nothing would happen; Water wouldn't spread, entities wouldn't move, even if you had an entity AI plugin, and other consequences.

    Don't worry, you're not the only one with this in your timings. I'm quite sure almost everybody has that.
     
    jasonwynn10 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.