[SOLVED]Performance issues with my biggest game project after creating over 100 scenes, 20 enemies, 10 playable characters, few items and weapons, 64 levels and too much materials like music, sound fx and sprite sheets!

Yes. Something like that.

Iā€™m going to assume itā€™s yes with the second one, so that helps us isolate it to a problem with the scene

Iā€™m afraid nope. I didnā€™t used a occlusion culling stuff but just full sprite object of tilemap.

Can you make a list of Extensions and Behaviors you use in your game?

What your describing is a memory leak, kinda like what we were having with the FlexBox or Flex Container Extension.

Do you use that one?

Oh no sorryā€¦ i just saw the debugger videoā€¦

I dont see any problematic extension, in fact id say the ones you are using are kinda working relatively ā€œwellā€ i guessā€¦

Stillā€¦ its kinda interesting since what your describing is a memory leak, your game is slowing down over timeā€¦ and i have no idea how to do that with just events.

So maybe theres another extension causing memory leaks?

I donā€™t have any extension installed but just on-screen and gamepad support on my largest project.

image

Hereā€™s my Extension.

In one scene it doesnā€™t lag if you have too much enemies because i already optimized it everything i could. But when you play over hours straight with 22 level scenes it starts lagging. So it must be a tilemap png problems in largest sprite object.

Just to confirm, your using ā€œChange Sceneā€ and not ā€œPause and Start a new Sceneā€ right?

What your experiencing is some sort of data pile up or memory leakā€¦ its got to be coming from some where

I actually using just ā€œchange sceneā€ for sure but i didnā€™t put that ā€œpause and start new sceneā€ or an unusable thing.

UPDATES!


So yeah i have to start tilemapping all over again but this time i directly putting the JSON files into GD5 instead of exporting as PNG that caused a lag and/or performance issues. Other things in EventSheet i optimized everything as much as i could.

It could be some variable for each event repeated again over scenes.It doesnā€™t looks like ure using heavy extensions.
Btw imho we reeeeallyyyy need a tilemap level builder inside gd with collision support and ā€œmouse draw supportā€ā€¦Something faster than the actual editor.
I spent 5 years on Tiled and in the end its integration to GD is a fkā€¦g mess.
It is fine if youā€™re making a single scene gameā€¦but with game like thisā€¦itā€™s just bad.