EmilsGithub / Clutter-Mod-Repository

The Github repository for the Minecraft mod Clutter
MIT License
6 stars 5 forks source link

Butterflies performance issues #8

Closed VaffanClash closed 1 year ago

VaffanClash commented 1 year ago

Hello, I recently added this mod to my server. One of my friends lives pretty far away from me, and her internet connection isn't the best, so I ran some tests and I found this:

image

Now, I'm not an expert with minecraft performance, neither in Java, even tho I'm a JavaScript developer. Seeing this error, it's obvious that there is something wrong with butterflies, so I tried turning them off in the config. The config presents this line: spawn.butterflies=true, which is apparently a Boolean, so I just changed it to false, but the butterflies are still here. I also tried checking the source code but well, not being a Java developer I couldn't figure out much.

Is there actually anything wrong with butterflies? And can it be related to internet connection issues?

EmilsGithub commented 1 year ago

I'll take a look at the butterfly code. How exactly does the config file look?

VaffanClash commented 1 year ago
image

This is exactly what it looks like now. Also, the file name is "clutterconfig.properties" tho. Is it correct?

EmilsGithub commented 1 year ago

And that's the file on the server?

VaffanClash commented 1 year ago

And that's the file on the server?

Yes, exactly. Sorry for the late answer

EmilsGithub commented 1 year ago

Did you also restart the server?

VaffanClash commented 1 year ago

Did you also restart the server?

Yeah exactly

EmilsGithub commented 1 year ago

Weird that they're still spawning with the config set to false, pretty sure I checked that. Also, I've changed the way butterflies pathfind to (hopefully) increase performance. This will be changed in the next update. Lastly, what did you use to get those performance numbers?

VaffanClash commented 1 year ago

Weird that they're still spawning with the config set to false, pretty sure I checked that. Also, I've changed the way butterflies pathfind to (hopefully) increase performance. This will be changed in the next update. Lastly, what did you use to get those performance numbers?

Nice! I used the mod Spark to get all the results