You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current function that handles item combo is O(n^3) with recursive call in the loop. Buying multiple items at the same time(i.e EX scroll) can cause a significant frame lag.
The text was updated successfully, but these errors were encountered:
Commenting lua code out revealed that the freeze was actually due to engine trying to directly precache all soundclips used by item. So when a player tries to purchase EX scroll by shop UI, it would compile up to 15 sound events at the same time.
Possible fix is adding a separate item that replicates EX scroll, but the compromise will have to be made with UI(no longer displays component, potential lack of clarity for new players).
EDIT: ok nevermind stutter happens for any combine event, just the matter of quantity
Current function that handles item combo is O(n^3) with recursive call in the loop. Buying multiple items at the same time(i.e EX scroll) can cause a significant frame lag.
The text was updated successfully, but these errors were encountered: