One Object with Effect versus many Ojb with none

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Can experienced developers in Construct advise on this:

    I have 64 color squares on the stage, Is it better to use 64 instances of one Object square and apply each with a TINT effect (OR), create 64 single color object PNGs using the desired color as the png. They size would be very low for each, prob 200 bytes.

    This is specific to "many" instances, not just a few - could go as high as 128 on the stage.

    I read that lots of effects (ie Tints) on objects deteriorate performance.

  • Individual Tint on 64+ instances sounds like recipe for killing graphics performance. especially if they start overlapping and especially on mobile. might be ok on desktop but you might be eating GPU performance that could be used elsewhere.

    it would probably be better to still have just one object but bake the tints into animation frames and just set the frame to change the color.

    However, i have learnt, asking performance questions, even to the experts, is mostly pointless.

    The only way to really gauge how different approaches will affect performance for your specific requirements is to try it all yourself on your target machine.

    Create a text box with CPU, FPS GPU time etc. create your 64-128 tinted instances / boxes and you should find out for yourself, in a few minutes, which is the better approach. And let us know your finding as I would be interested.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Excellent suggestion and insight... Will do.

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