Load layout images function

0 favourites
  • 4 posts
From the Asset Store
500 monsters and creatures images for card games - Set 1
  • I'm wondering how do I use the "load layout images" properly to maximise performance. I find using it on the home screen, my project goes up to 70mb memory usage but once I change layout, it immediately goes back to normal 50mb, the same memory usage if I were not to even use the function/load that 2nd layout by itself. My assumption is that since I made it load all images in all layouts, the memory usage will stay the same at 70mb throughout the whole project.

    How do I use it to my advantage?

    Thanks

  • bump~

  • Construct already loads layouts in to memory when you switch to them. The only reason to use it is to pre-load another layout before you switch to it, making it faster to load the layout. Typically this is done on a separate loading screen. Loading another layout's images while still on a gameplay layout is dangerous, because it will temporarily spike the memory use, and risk crashing the game as it runs out of memory.

    If you want to reduce memory usage, you will need to remove objects or unload memory - not load even more things.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Construct already loads layouts in to memory when you switch to them. The only reason to use it is to pre-load another layout before you switch to it, making it faster to load the layout. Typically this is done on a separate loading screen. Loading another layout's images while still on a gameplay layout is dangerous, because it will temporarily spike the memory use, and risk crashing the game as it runs out of memory.

    If you want to reduce memory usage, you will need to remove objects or unload memory - not load even more things.

    Ah ok I understand it now, thanks for the reply.

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