Are object variables automatically deleted when an object is deleted?

I’m having my first and only issue with major slow down with a ton of objects that are created, then destroyed, and maybe I’m thinking if I should use extended variables support to make sure object variables are being removed as well, from deleted objects?

no GDevelop is not built in a stupid way and doesn’t keep objects variables after the object is deleted.

Are you positive they’re all being deleted? How many instances are showing on the debug screen?

Yeah, that’s a good point. I’ll review carefully to make sure nothing is getting by. Maybe it could also just be a rendering issue as well since I haven’t optimized the images yet. Thanks!

1 Like