Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 147
    • Issues 147
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #764

Closed
Open
Created Apr 06, 2022 by Cryptite@Cryptite

Major performance loss from Entity Lookups via ProtocolLib packet interception

Summary

The way PL fetches entities seems to be significantly worse in 1.18. In my plugin I used the same code to fetch an entity from the various entity-based packets. In 1.18, this results in a full iteration over all entities in a world with even loaded chunk checks:

image

Priority

Quite high, I had to turn off MM on my SMP servers in order to prevent major TPS loss.

Implementation!

At the moment you can use NMS to get the entity(ies) via ID directly (In my case, was using ProtocolWrapper): image

Edited Apr 06, 2022 by Cryptite
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking