Fluid Drawers

Fluid Drawers

438k Downloads

Fluid Drawer took too long to load model (~7 seconds)

Krutoy242 opened this issue ยท 3 comments

commented

I profiled my game load PreInit stage. I found that Fluid Drawers, despite having only one block consume too much time to load. Its about ~7 seconds and more than most of other ~400 mods i have in my modpack.

image

https://spark.lucko.me/ZW1KynfgAK

Is it normal behavior? How can i improve that and make it load faster?

commented

I guess the problem is that my model loader loads every model file in the game to check if it should handle loading that model; I assumed that there wouldn't ever be enough models for that to be a significant performance issue, but I guess e2e:e is big enough that it becomes one. I'm occupied for a bit, but I might be able to get a patch out in a couple weeks

commented

Would be great! I'm happy to wait.

Also in the profile you can see several other methods that have heavy loads to. They all related to libnine model calls.

It's it would be helpful if I pick them from profile and write down as separate list?

commented

nah, those are all exactly the same issue; fluid drawers loads models exactly the same way l9 does