maybe someone has insight into when C2 (or more precise: the game exported via C2) loads the layouts.
Are all of the layouts being loaded at the very beginning of the game, the loader layout?
Or is a single layout being loaded as soon as one changes to it?
I'm asking because currently, I use one layout for a whole game and change scenes by spawning and destroying them (there is a specific reason for that). On mobile, spawning big sprites causes lags. So I'm thinking about converting everything into seperate layouts, if they are loaded at the beginning.
hi, regarding at layouts i have found this, but me too im a bit confused about loader layout :
In Construct 2, images are loaded layout-by-layout. This means when a layout starts, every object on the layout is loaded in to memory immediately. This is to avoid mid-game pauses as textures are loaded on the fly. When the layout ends, it will free all the images in memory not used by the next layout, and load any new images the next layout uses. This means your game's peak memory use is based only on the layout with the most images, rather than all the images in the project. So you can happily have something like four different "worlds", e.g. forest, snow, desert, and space, all using different sets of images - and the "snow" world won't make the "forest" levels use any more memory.