Page 1 of 1

[Rseding91] [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Sun Feb 09, 2025 9:26 pm
by tappi
I made this setup in editor to make 1200 plastics per second:
02-09-2025, 23-21-18.png
02-09-2025, 23-21-18.png (48.56 KiB) Viewed 1257 times

But it can only do 960 plastics per second no matter what:
02-09-2025, 23-21-04.png
02-09-2025, 23-21-04.png (1.71 MiB) Viewed 1257 times

It's not input starved, can't show it in screenshot but the save file is attached so you can see yourself.
02-09-2025, 23-23-04.png
02-09-2025, 23-23-04.png (106.22 KiB) Viewed 1257 times

flame_Sla from technical discord had this to say:
Something is strange:
940/s -> entity.bonus_progress = 1
999/s -> entity.bonus_progress = -5.3290705182008e-15
it looks like some kind of overfilling/incorrect type conversion
It produces a maximum of 16 plastics per tick
The posted savefile has QoL mods associated with it but the scenario only has vanilla entities and settings, just load without mods. I also have a savefile without the mods attached if wanted.

Re: [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Mon Feb 10, 2025 2:48 am
by Rseding91
It looks like the issue is the fluid amount. 40 is not enough to craft at the full speed each tick and so it runs out, and is then filled up after the update. We've had this issue with several recipes in space-age due to high speeds and I have some ideas about how to fix this for everything in one go.

Re: [Rseding91] [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Mon Feb 10, 2025 10:17 am
by flame_Sla
Why doesn't the "Fluid ingredient shortage" message appear?

Re: [Rseding91] [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Mon Feb 10, 2025 12:16 pm
by Rseding91
Because by the time the GUI renders the fluid has been refilled. The status is based on the state of the entity as it is rendered and not the state when it was last updated.

Re: [Rseding91] [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Tue Feb 11, 2025 11:36 pm
by Rseding91
I've changed this logic for the next release so the input fluid amounts increase when a machine is being effected by speed bonuses.

Re: [Rseding91] [2.0.34] Cryogenic plant cannot make more than 960 plastics per second

Posted: Thu Feb 20, 2025 3:18 pm
by tappi
Thanks!