Blood And Madness (A Bloodborne Inspired Mod)

Blood And Madness (A Bloodborne Inspired Mod)

6M Downloads

GetTargetByTeamGoal NBT Serialization Lag

ByThePowerOfScience opened this issue ยท 0 comments

commented

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:

Screen Shot 2024-11-10 at 7 57 45 PM Screen Shot 2024-11-10 at 7 58 28 PM

Environment

Minecraft: Forge 1.20.1
Version: 2.0