InZan17 / Unloaded-Activity

When certain blocks such as crops or furnaces get out of simulation distance this mod will keep track of that so once the blocks get in again the mod will apply the changes it would have gotten if it never left the simulation distance.
https://modrinth.com/mod/unloaded-activity
GNU Lesser General Public License v3.0
17 stars 6 forks source link

Severe Lag Issue #18

Closed SavageTheUnicorn closed 10 months ago

SavageTheUnicorn commented 10 months ago

I encountered an issue with the mod causing it to spam Failed to deserialize component: unregistered key unloadedactivity:last-entity-tick in the console. It seems to trigger any time a player would teleport, I have removed the mod but it still continues to flood the console. Any suggestions? Fabric 1.20.1

SavageTheUnicorn commented 10 months ago

Scratch that, moving a few blocks causes it to trigger as well. Mod is no longer loaded or installed into the server. EDIT: It's when I get far away enough from certain chunks. Flight or tp.

InZan17 commented 10 months ago

The warning comes from a dependency my mod uses called Cardinal Components. These warnings shouldn't appear when Unloaded Activity is installed. But if you remove the mod and you still have Cardinal Components or another mod which depends on it installed, then these warnings will appear, since Cardinal Components is trying to read old data my mod has left behind.

They can also appear if you have the Unloaded Activity on a server but the client doesn't have Unloaded Activity and only Cardinal Components, which in that case you can just install the mod on the client or remove Cardinal Components from the client to remove the spam.

SavageTheUnicorn commented 10 months ago

In the end, the lag was not caused by this mod. I appreciate the in depth information though! I never found the cause after cycling tens of mods so I gave up and downgraded to 1.19.4 👍