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

Solved Server Lag ! Help

Discussion in 'Development' started by Bluzzi, Dec 7, 2017.

  1. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    I do everything you told me, I also optimize the PlayerJoinEvent function, and then I'll let you know.
     
  2. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
  3. HittmanA

    HittmanA Zombie

    Messages:
    207
    GitHub:
    hittmana
    I think you would have to have fewer worlds to optimize the world save time.
     
    Bluzzi likes this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    or increase the autosave period
     
    SleepSpace9 likes this.
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    the entity tick seems high do you have any entities?(custom mob plugins maybe)

    commands home, kit seems somewhat high consider looking into it

    regarding your faction core:
    you are still using Core\Events::onMove(PlayerMoveEvent) (tho moveNoel seems fine), mind sharing that and maybe do some optimizations same for Core\Events::EditLootAndPoint(BlockBreakEvent), Core\Events::DeathDrop(PlayerDeathEvent), Core\Events::DeathMessage(PlayerDeathEvent), Core\Events::onQuit(PlayerQuitEvent)

    these: DeathPoint(PlayerDeathEvent), Core\Events::DeathSend(PlayerDeathEvent), Core\Events:onJoin(PlayerJoinEvent)
    look quite high, if you dont mind you should share the related code here

    you are still using tasks for the chest finder but it dosent look so bad, even tho i recommend you to use event it probably will be fine for the time begin, the clearlag is at 1% doe
     
    Bluzzi likes this.
  6. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    I can not reduce the number of people, but there is no world that is used by the players.
    Status screen: https://img15.hostingpics.net/pics/630071Status.jpg
     
  7. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    I do not use mob custome, but yes there is a lot of entitie (see / status https://img15.hostingpics.net/pics/630071Status.jpg), I made a clearlag to delete all items on the ground every 3 minutes, I do not know if it changes a lot...

    Do you really think that joining the PlayerDeathEvent and PlayerMoveEvent functions can optimize the server?

    In onJoin I put in an array: The name of the faction of the player, his rank, I put him the perms, I set his nametag [...] thought you would be more optimized to watch his rank in the config at each times (example with each faith that he speaks, makes commands ...) rather than looking in an array?

    I'm sorry if you have trouble understanding me, I'm not very good at English ... and I went through google translation to send this big message :(
     
  8. Bluzzi

    Bluzzi Spider Jockey

    Messages:
    46
    She is at 6000, I should put it to how much?
     
  9. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    i mean if you can provide the code it would be great, as guessing how you did it by your response then guess what could gone wrong is harder then just easily analyze the code like how we did on the task
     
  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.