Which is faster/ less resource intensive?

0 favourites
  • 3 posts
From the Asset Store
Mine those precious space resources & start trading
  • Is it faster to go to another layout or just destroy all assets on the current layout and have the system spawn new assets?

  • Hello,

    It depends, I would use the go to layout because it will probably not matter performance-wise, it is easier logical to reason about also the state of all objects is reset which will probably help avoid bugs.

    Destroy objects could be faster if you save the objects that will be reused in the next layout, then you don't have to recreate those. But this would need to be tested because the construct probably has optimized ways of swapping layouts.

    Usually it not worth doing premature performance improvements, to make sure solutions actually improve performance it has to be measured. It is more worth focusing on things you notice are slow.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are just worried about the Assets part only:

    When you say new Assets are you referring to the same assets spawned again?

    1-If you are gonna spawn the same assets in the same layout then it will load faster than the first time you loaded this layout, as they are already loaded into the memory so Construct reuses them.

    2-If you change the layout and the new layout uses the assets from the first layout then it will reuse them so those assets will load faster as they will keep them in the Memory and any other assets that are not used in the new layout will be removed from memory.

    So the ones to watch:

    The ones that take longer to load are the new assets that are not loaded into the memory yet.

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