sgtcaze / NametagEdit

Simple plugin to give players custom nametags
GNU General Public License v3.0
193 stars 132 forks source link

LAG! #447

Open SladeHazard opened 4 years ago

SladeHazard commented 4 years ago

Bug Report

4.4.6

1.12.2 Paper

Not required

Running the plugin with these files: config.yml: https://pastebin.com/Kdd8DPw1 groups.yml: https://pastebin.com/1HpgPCki players.yml: https://pastebin.com/KhchrZsr

Plugin is causing lag Timings: https://timings.aikar.co/?id=846a3f2c4e474df0a524c770f565aa99#plugins https://gyazo.com/59ed9d61a25b8c1d53393d6e58f393b2

alfiejfs commented 4 years ago

NametagEdit is taking up 1.01% of the tick - I think your lag is coming from somewhere else!

SladeHazard commented 4 years ago

NametagEdit is taking up 1.01% of the tick - I think your lag is coming from somewhere else!

Yeah why is it taking 1.01% of the tick?!

alfiejfs commented 4 years ago

It is only 1.01% of the tick, which is a really insignificant amount - it will not be causing any noticable lag on your server.

It has a runnable that runs every X seconds (denoted by the configuration value "RefreshInterval") that refreshes tags on all players.

EDIT: RefreshInterval is also by default 0, or off - it will just be refreshing on other events, especially if you use plugins that do things with the NametagEdit API)