Reduce Lag Issues

How Do I reduce Lag issues. the game has a lot of background processing going on which is causing it to run slow.

Prefetch might be a good way to go but im not sure how to go about it in gdevelop

Use the debugger to see what is causing the low performance. You can also use the preview over wifi to use the performance profiler on other devices like a smartphone.

Before using the debugger/profiler I would recommend breaking up all events into groups and sub-groups because those are what show up in the profiler. The more granular the better.

Background processing you can throttle using timers.
Sometimes you can convert for loops into selection based events instead, or put a selection event before the for loop to reduce the loop size.