AzureDoom / AzureLib

Based off Geckolib but now just for my own needs.
MIT License
31 stars 6 forks source link

AzureLib constantly at ~5% CPU load #5

Closed gittibene closed 1 year ago

gittibene commented 1 year ago

Trying to optimize our (huge) modpack and noticed that Azurelib is constantly at around 5% CPU usage, making it one of our most demanding mods. I'm wondering what the reason for this is? The only mod that uses AzureLib is Dark Waters for now and this is occuring even when there's no water in sight.

This is on Fabric 1.19.2

https://spark.lucko.me/wX1INtnvTY

AzureDoom commented 1 year ago

image This appears to being called by the Travelers backpack, which is using the item render, which AzureLib mixins into in order to do Items currently. I have a possible tweak that may be possible to help. If you can please reach to me on my Discord, I'll gladly send you a dev build to test if you are open to it.

gittibene commented 1 year ago

Oh thanks, should've expanded the tree a bit more. I think i'm gonna get rid of Travelers Backpack then because it also renders backpacks live from code instead of using models and puts a huge strain on the game even without the item rendering. Happy to join your Discord and test your fix before that though

AzureDoom commented 1 year ago

Looks like my idea didn't work but let me know if it still is high without the backpacks please!

gittibene commented 1 year ago

Thanks for trying, will do!

gittibene commented 1 year ago

AzureLibs utilization is back to normal, thanks!

https://spark.lucko.me/gp3gP7D6Rl

AzureDoom commented 1 year ago

That's awesome to hear!