-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates to fluid pump networks cause abnormal amounts of lag #5766
Comments
While testing an upgrade to latest Create on 1.20 I've noticed the same. Lag from vaults is replaced by 11%+ of MSPT going to PumpBlockEntity. https://spark.lucko.me/v3wsm38G0W This was a single base loaded. |
This patch includes some changes to use multithreading. This significantly decreased MSPT I've made a similar test as shown in the video. After the changes I wasn't able to make it go beyond 10MSPT. This patch should be tested a bit more.. Edit: |
The pump seems to not work in very specific use cases. What I tried to do now is start from the endFaces and follow the already found path to the pump. This should reduce the load a little bit and we can process each endFace in parallel. I'm still able to generate a ton of updates to make it start lagging. But it is not as bad as it used to be. |
how can i patch .jar file with .patch file? |
You shouldn't if you have to ask. It's also for any developer who can resolve this better then me to see what I tried. But it introduces an issue that some pipes don't work in all directions. But it's also not always the case. Not sure what is happening there |
Describe the Bug
Updates to a fluid network with at least 1 rotating mechanical pump cause extremely high amounts of lag. This includes wrenching or adding new pipes or pumps, and block updates in front of mechanical pumps. This lag appears to scale nonlinearly with the size of the network.
This can be an issue with pump based cobblestone generators, as cobblestone is rapidly formed and broken in front of each pump.
Reproduction Steps
Expected Result
Lag spikes should not occur.
Screenshots and Videos
Minecraft.Forge_.1.20.1.-.Singleplayer.2023-11-18.00-21-32.mp4
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.1f
Minecraft Version
1.20.1
Forge Version
47.2.0
Other Mods
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: