Bug Closed · Resolved

TPS Drops related to villagers' vanilla override (I think)

#2531 opened by Unknown 4 years ago

Unknownreported this bug

Summary

MM c71bdbde MC 1.1.0 Snapshot (current) Paper 398 1.17.1

I am experiencing a noticeable amount of TPS dips and they correlate with this error in console. I do have a vanilla override in place for villagers (simple skill to set scoreboard but i can send the config if need. it also has them set as despawn=false to mimic vanilla behavior.)

Steps to reproduce

Give villagers a vanilla override with a metaskill of some kind, I'm using an ~onDeath trigger for mine, and set their mob option as despawn=false

Current behavior

High MSPT and TPS drops related to MM I believe attempting to despawn mobs that it can't resolve correctly.

Intended correct behavior

Happy server with TPS drops not spiking?

Server log file

https://pastebin.com/EGFvPv66

Unknowncommented

Can you test MM dev build 3954 and 3953? See if the TPS issue happens in either builds.

Unknowncommented

I can, i'll let you know when I do.

Unknowncommented

3954 has same issue it seems, https://pastebin.com/4H9aQzZM

3953 gives only a slightly smaller error, but essentially the same just less verbose. All randomspawns do not seem to be working either.

Unknowncommented

Noteworthy bit is that 8e25ccdf 4.14.1 Premium still has the error, but seems to not affect TPS nearly as badly, at least not noticeably enough. Randomspawns on this version also seems to be acting quite differently. Might have to make a separate issue or hit up the discord on that though

Unknowncommented

4004 seems to be somewhat related? changelog references a call that is similar in nature. can confirm?

"Double-check that chunk is actually loaded when EntitiesLoadEvent fires"

Unknowncommented

Are you still getting TPS drops on latest dev?

Unknowncommented

Still noticeable amounts, not exactly as bad as initially reported. Still getting these errors in console:

25.01 00:07:00 [Server] ERROR [MythicMobs] [EVENTS] Exception thrown whilst handling event: org.bukkit.event.world.EntitiesLoadEvent
25.01 00:07:00 [Server]  java.lang.NullPointerException
25.01 00:07:00 [Server] ERROR [MythicMobs] [EVENTS] Exception thrown whilst handling event: org.bukkit.event.world.EntitiesUnloadEvent
25.01 00:07:00 [Server]  java.lang.NullPointerException
25.01 00:07:00 [Server]  [MythicMobs] ? Config Error for Mob 'VILLAGER' in 'VanillaMobs.yml': Error processing skills for mob VILLAGER. Mob type may no longer exist, or may have become corrupted by a server crash, and will be removed.
Unknowncommented

Console spam is resolved in current dev, Issue with TPS was related to conditional targeters on villager based mob, I'm pretty sure, after testing. Spoke with josh briefly on this, and I might have to change the AI on them a bit perhaps. instead of conditional arguments for a scoreboard check (I assume run on every tick for targeters?) I would likely have a skill to set a players' faction based off of conditions when the value is changed, and have them target that faction. Could get messy so wish me luck. Might be nice to have an interval argument for conditional AITargetSelectors... I might put in a suggestion for it.

Unknowncommented

Yeah, that's a good idea. Will see if we can implement an interval argument to nearestIf targetselector

Sign in to join the discussion.