LAG caused by the VERSE CODE in a TYCOON SYSTEM (UEFN)

Hey guys! How is it going? I’m building a tycoon map in UEFN, everything works fine, until i have this issue in my game. Always when i’m going to claim a prop or dropper, i’m having this insane lag, and i notice that the lag increase according to how much props i put in the system, when the map was just the first floor, the system works without any lag, but when i finished the full tycoon, this started. I’m starting with verse recently, can someone help me on what i can do to fix it?

Hi, can you show parts of your code? about how you are managing the progression, purchases of upgrades and storing the data?

This lag usually happens when too much expensive tasks are happening at same time in verse. Normally that would be very rare to occur, only happening with absurdly high counts of things. But as seen on your video, looks like you are not doing much on gameplay that would justify it.

My first assumption is it happening due to orphaned tasks spawned in the code that keeps running forever, recursive calls, or long communication paths instead of direct checks… But for these, we would need to understand what you wrote to be able to help