tModLoader

tModLoader

Magic Storage
Lag while adjusting crafting amount
When I try to craft platforms in my storage system, trying to adjust the crafting amount for items like mud and platforms (especially by large amounts) causes a few seconds of lag. Going from 1 to max stack takes several seconds--doing it with mud crashed my game.

I tested this with recursion depth of 2, 1, and 0. There's no lag with 0 recursion depth, but about the same amount of lag with 2 and 1. I'm using default sorting and filtering.

My theory was initially that the crafting simulation reached a cycle of block -> platform -> block etc, but that doesn't explain why it lags with mud.

Any idea why this happens?

Version information:
Terraria v1.4.4.9
tModLoader v2025.9.3.0
Magic Storage v0.7.0.11
SerousCommonLib v1.0.6.2

Other major mods
Fargo's Souls + Mutant
< >
Showing 1-2 of 2 comments
absoluteAquarian  [developer] 1 Nov @ 1:28pm 
Changing the craft amount causes both a re-scan of stored ingredients (which has to check the recursion trees) as well as a full refresh (which trashes the previous results) for whatever reason.

As for the suspected recursion, it specifically checks for such cycles and cuts them short (so, in this case, it only sees "block → platform").
EMC 1 Nov @ 1:38pm 
I did find the check you mentioned in Common/Systems/RecurrentRecipes/RecursiveRecipe.cs#L78-L82.

Can you point me towards the method for changing the crafting amount?
Last edited by EMC; 1 Nov @ 1:39pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50