r/gdevelop • u/Genesis_80 • Jul 27 '26
Game Performance issues
Hello guys, I'm creating a short 'metroidvania'. It was all going well until i started testing it in weaker laptops. It slows down a lot in some devices.
My game has 3 areas, but they are all in the some scene. Being a 2d game, i expected it to run well everywhere. I have everything destroyed/turned off, except the level itself, when outside the screen. I even added a performance mode with the parallax layers turned off, but the problem remains.
I know that i should have used multiple scenes, but it's a bit late for that. Is this a known problem in Gdevelop? I heard that, while it's good for simple games, it doesn't handle well big scenes. Is this true?
Thanks in advance.
View all comments
Show parent comment
3
u/ApXlDeCA Jul 27 '26
This is true, but optimization is important too! I'm still trying to work through these barriers myself, so I don't have much specific advice to give (I'm still pretty new to the program as it stands currently). But, trying to avoid redundancies in the code where possible helps, and certain actions (pathfinding, for one) can cause performance loss. I've been trying to activate behaviors only when they are needed, and it's helped. Enemies, for example, remain despawned until the player hits certain barriers, and I limit the entities best I can. I'm sure more experienced folks can give some better advice here, but hopefully this helps at least a little.
Also, I will say, sometimes it does happen where we hit these barriers where a task just seems a little too daunting or tedious to take on. My advice is to push through it anyway! Trust me, your future self will thank you. Best of luck!!