Memory usage by Sprite Object VS its instances

  • Suppose I have a sprite which uses 2mb memory. If I need 100 instances of the object, will the game use 200mb memory?

    I tried copying several instances of the object on the game layout. But it doesn't seem to affect memory usage according to the game engine (in the Project Statistics window).

  • No. The memory is in ram, not on the screen.

    Additional instances add(slightly) up in cpu though.

  • No. The memory is in ram, not on the screen.

    Additional instances add(slightly) up in cpu though.

    newt Thank you for your answer... I want to know more:

    If there are 800 instances of this object on the screen wont it reduce fps?

    Moreover can i make a multiplayer game working with this much instances? I mean 4 players each controlling 200 instances like in strategy games.. Thankyou.

  • You can have thousands of objects on screen, it just depends on what they are doing.

    If they are all doing something complex then that will slow things down.

    If you are sending multiplayer commands one at a time then that would also slow things down.

    All this depends mostly on the individuals hardware.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can have thousands of objects on screen, it just depends on what they are doing.

    If they are all doing something complex then that will slow things down.

    If you are sending multiplayer commands one at a time then that would also slow things down.

    All this depends mostly on the individuals hardware.

    Okay, thank you for your answer.. I will keep that in mind :)

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