Volumetric Flask

Volumetric Flask

81.7k Downloads

Lag spikes

almightyju opened this issue ยท 3 comments

commented

So I've been using this mod a lot in a new build since it's so good, but I'm starting to get lag spikes between 2-4000ms in time. I've profiled it using spark and it's at https://spark.lucko.me/#RpmF77Jtc9

In case the link should die this is a screenshot of the profiler section (the provideCrafting function is in 3 separate calls in the full profiling output):

It seems like this function is triggering a lot and taking multiple seconds on a single tick update

public void provideCrafting(ICraftingProviderHelper craftingTracker) {

Is there anything that can be done? it only seems to have gotten worse as I'm adding more and more fluids :(

commented

Could you try out a test version?
VolumetricFlask.zip
Extract volumetricflask-0.15.jar and replace the existed file in your mods folder. This file is same as artifacts at https://github.com/exzhawk/VolumetricFlask/actions/runs/80088913
Don't forget to backup the world save before trying the test version.

I added about 300 fluids to ME network in my local world, add spotted the mentioned function. But the profile result isn't as obvious as yours. The test version seems to be working better.

If lag still occurs often, please profile again and post the result. A world save (with malfunctional machines) and the modpack you use might be helpful.

commented

That is so much better, noticeably less lag, probably didn't help that I had 2 fillers on my network, oops!

Thank you for fixing that so quickly :)

commented

Released version 0.16