What get's loaded into memory?

0 favourites
  • 4 posts
From the Asset Store
Test and challenge your memory in this amazing Christmas themed memory game!
  • Hi guys

    Just wondering whether library objects that are not on the stage are still loaded into memory.

    Let's say I had a low resolution sprite on stage and and a hires version in the library, would both be loaded?

    Thank you in advance!

  • Only images used on the current layout are loaded in to memory. Objects on other layouts are not loaded until you go to those layouts, and when you do so, objects on the old layout are unloaded from memory. This prevents large games running out of memory.

  • Only images used on the current layout are loaded in to memory. Objects on other layouts are not loaded until you go to those layouts, and when you do so, objects on the old layout are unloaded from memory. This prevents large games running out of memory.

    By "used on the current layout", does that implies also objects that are talked about inside the event sheet, even if none of them would actually appear in this particular layout?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Aphrodite - no, only objects that are initially placed in the layout in the editor. If a different object is created at run-time, it will have to load it at the moment you create it, which could make the game momentarily stutter. To avoid that place any objects you might create just off the layout and destroy them on startup - they'll still be preloaded.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)