Is there a difference between these two?

  • So, I have read somewhere that the number of moving objects on the screen has a serious impact to the app's performance.

    So, I have this map with levels in my game, which you drag left or right in order to slide it. Because it is very laggy, I have come up with an idea of scrolling the screen left-right, instead of moving the whole map together with the bunch of sprites pinned on it.

    The question is: Is there any difference, regarding the performance, between moving the whole map in order to slide it, and only scrolling the screen and moving the UI?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes. Changing the positions of a lot of objects every tick probably utilizes significantly more resources than just changing the position of the viewport (or a single invisible helper sprite with the "scroll to" behaviour).

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