KingContaria / seedqueue

Minecraft mod that generates multiple worlds concurrently and lets players reset them on an ingame wall screen.
MIT License
32 stars 18 forks source link

Very high CPU usage while idling #29

Closed marin774 closed 2 months ago

marin774 commented 2 months ago

After playing and resetting for even a few minutes, CPU usage will be large when idling, sometimes hitting 30% on my pc. This also happens while idling on SQ wall (after all queued instances have stopped loading). image

marin774 commented 2 months ago

Logs are here (i ran a benchmark, then quit to title, currently sitting at 10% cpu usage with "very high" power usage), but I don't think there's anything useful in the logs. If i had to guess, some threads are stuck in a loop doing something in the background..

KingContaria commented 2 months ago

SeedQueue disables one of SleepBackgrounds optimizations that was designed to reduce CPU usage when idling because it caused severe slowdowns when SeedQueue was running at high load, there is a good chance thats the cause. I might look into only disabling it while in a SeedQueue session

marin774 commented 2 months ago

I had SleepBackground disabled there, but it still might have something to do with that ¯\_(ツ)_/¯

KingContaria commented 2 months ago

Was this issue fixed by version 1.1.1?

marin774 commented 2 months ago

Yes, 1.1.1 fixed this