paulevsGitch / BetterNetherBeta

BetterNether mod for Minecraft beta 1.7.3
GNU Lesser General Public License v2.1
11 stars 2 forks source link

High CPU usage in JProfiler on server #3

Open ChefMC opened 9 months ago

ChefMC commented 9 months ago

image

paulevsGitch commented 9 months ago

It is a feature generation thread, one of the most intensive parts of the mod, so it is expectable for it to use a lot of resources. Newer version will use new StAPI feature API and will use less resources

ChefMC commented 9 months ago

But it using 48.4% of CPU even when doesn't generating anything. I see this way of generation first time, why are you preferred to don't use common way which most of mods adding their stuff into generation?

paulevsGitch commented 9 months ago

There is no such way for the Nether: there are no any content generation methods related to the Nether, so all methods were created from scratch. This thread is always active since pausing/restarting thread in not a free operation. Actually all generation was placed into a separate thread since it is too heavy for the MC itself.

Can you please provide a full profiler output? Potentially there can be a mistake which resulted with memory leak (or profiler can incorrectly count CPU usage)

ChefMC commented 9 months ago

It's my first time working with profilers, so Idk how to get it