[Help] Performance drop with many recipe modules & controllers for multi-recipe

bochaniu bochaniu · 21 days ago

I want to use programming MODs to build an automated production line. The system needs to monitor warehouse saturation, classify item tiers, and have assemblers operate at full capacity for manufacturing.

However, I've run into a limitation with the MOD: each recipe module can only hold one recipe. When an assembler handles many different recipes, I have to add a huge number of recipe modules. In some cases, multiple controllers are required to serve a single assembler.

It works, but the setup is extremely clunky. The real problem starts once I scale up to around 20 assemblers. This requires nearly 50 corresponding controllers, and my game FPS drops from ~15X down to ~7X.

Are there any ways to fix this performance hit? Is it possible for a single recipe module to bind multiple recipes?

DeznekCZ DeznekCZ · 19 days ago

Hi, that is caused by lack of game API.
The module itself needs to loop trough all recipes of machine and se is active now every tick.
You can optimize it by slowing controller, where this is used.

bochaniu bochaniu · 19 days ago

20TS.pngWhich specific module can reduce the speed? Is it the latency module? Is this the place?

DeznekCZ DeznekCZ · 15 days ago

bochaniu wrote:

20TS.pngWhich specific module can reduce the speed? Is it the latency module? Is this the place?

This is used for reduction of number of iterations per minute.
By default, it is 600 iterations and it can be slowed.
T/M = ticks per minute

DeznekCZ DeznekCZ · 15 days ago

Ideally it needs additional controller with the condition logic and second with slow read of results and activation.

57 Showing 1–5 of 5