TeamDman / SuperFactoryManager

Mozilla Public License 2.0
48 stars 19 forks source link

Severe performance issue #135

Closed winterSteve25 closed 3 months ago

winterSteve25 commented 3 months ago

Hi, I am using SFM to automate the energizing orb in a ftb skies expert playthrough, and I'm encountering severe performance issue when using output to retain 1 each to output_chest

here is the sparks profiler result: image

I believe it is caused by this line, but I am not certain. https://github.com/TeamDman/SuperFactoryManager/blob/1.19.2/src/main/java/ca/teamdman/sfml/ast/OutputStatement.java#L295

in the manager interface it says the tick time is around 1000ms.

TeamDman commented 3 months ago

using 1 each is very unoptimized at the moment, it expands for each item in the game right now. Try restricting it to like retain 1 each *seed* to output_chest if you can

TeamDman commented 3 months ago

addressed in latest build