Slikkelas Posted August 9, 2025 Report Posted August 9, 2025 Hey wilderness explorers! I have worked months on a mod that introduces 2 new entity behaviors. These behaviors change alot of stats dynamically with a ratio that is updated with SlowTick. Stats are set by "this.entity.stats.Set("something", "mymod", RatioValue, false); Further i change the nutrition values by calculating a new value and write that directly. E.g. nutrition.FruitLevel = nutrition.FruitLevel - (ReducedAmount) I also read alot of values from other entity behaviors, like hunger and health. It all works perfectly, but i have a lag issue that seems more like a sync issue, where the frames need to catch up and stutters. It's not a lag spike, just a hickup like screen tearing and it is barely noticable, but i want it resolved. It happens without being systemic and only when the player is moving. If i remove the mod it disappears. I have tried almost everything to resolve this, but need some insight about what to avoid when modding this game. It should be a simple mod with no content added. And i should have made it only apply to the entity player, but maybe i am missing something crucial?
Recommended Posts