How to reduce object lag?

Hello Gdevelop! I NEED help. desperately. Sooo, my game is object heavy, and it is not being very friendly with my old laptop. There is a TON of objects, most with animations, or effects. And my game is open world. Here’s an image to get an idea. Each yellow spike is its own object.

So, my question is, how can I stop the lag? Do I hide objects? I’ve tried so many things, and they just seem to make it worse. PLES HELP MEEEEEE…

What effects do you have, as these can be a performance drain.

Also, are you using any “Repeat for each instance of ...”, and screen shot them if you are? These could also impact performance.

1 Like

Will object culling work for you?
What it does it deletes object that are about to get off screen or are off screen depending on your padding
And create them back when they are getting close to screen

I set padding to 0 so you can see it happen
https://games.gdevelop-app.com/game-bf30ac11-a040-48ff-9acc-875531e56470/index.html

I am getting fps lag around 40k
Where normally i get around 10k
But that is counting each square of my map being built from 16x16 tiles
And you most likely would have less

2 Likes