GetTargetByTeamGoal NBT Serialization Lag
ByThePowerOfScience opened this issue ยท 0 comments
This is an elaboration on #5, and what's likely the cause.
Issue:
It seems like the NBT serialization in com.nitespring.bloodborne.common.entities.ai.teams.GetTargetByTeamGoal#findTarget
is picking up the entire recipe book every tick as well, causing major lag.
Rather than store team data in the NBT, use a capability or datapack-style "entity variables". Just use a capability, basically.
Here's a picture of the full spark report I think they were referencing:
Environment
Minecraft: Forge 1.20.1
Version: 2.0