Since I started using Gdevelop, I’ve always tried to keep objects inside a scene because of the warning the engine shows when you try to make one a global object, and the fact you litterally can’t make directly global objects but always need to start with a scene object. It feels like the warning asks you to do it only when really necessary, which I thought was because it’s loaded differently by the engine and therefore can impact game performance.
But from what I saw on the forum here and after asking Grok AI (twitter AI), it seems that whether an object is global or not more likely has litterally 0 impact on performance ?
So I’m asking here to have an answer from people who have more experience with Gdevelop or more technical knowledge about it. Does it impact performance or is it purely about ergonomics and object management ?
From what i remember
Scene loading was changed
So like it does not load all your scenes like it always was
But to speed up the process it 1st load your starting scene
And then others
And if that is true
Then making object global will make it load no matter on which scene it was
So loading time will be longer
But then did you see long loading times in gdevelop?
So it would contribute to loading time for sure
BUT is it global or not
I say not matter
And what lags the game matters what you do with this object
You can have tons of objects or bullet hell game and do not feel any lag
However you are perfectly capable of lagging your game with just one object
And is it global or scene one plays no role here
BTW warning is there because
Imagine you have global object player
In any scene you double click it and change its animation or some behavior so its affected globally in all scenes
If you would have scene object player in scene one and in scene two
You can have totally different behaviors/variables/effects/animations and whatever else between them
When i need to make something global and i am not sure about it
I simply make duplicate just in case and then switch original to global
Never seen any slowdown from that and never did i that warning bother me