Tips for optimization and efficiency?

0 favourites
  • 6 posts
From the Asset Store
Designed for your characters, all parts can be added or removed. Ultra HD 300dpi.
  • So, my primary concern with making games in Construct 2 is optimization and efficiency. It's because I want as many people as possible to play my games without sacrificing any quality in nay form, like with detail, sound quality, etc...

    Any tips or shortcuts of what I can do, especially event wise?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • scirra.com/manual/34/best-practices

    scirra.com/manual/134/performance-tips

    Read up on these, specifically the second link. Let us know if you need any more help.

  • I have a couple, may I? :)

    About too many objects - would setting visibility to invisible for objects outside layout speed up the game? something like two events for every object that CAN be placed outside the layout:

    is outside layout? set invisible
    =/= is outside layout? set visible

    BTW, typo in the Performance tips: "Always used Tiled Backgrounds instead of repeating Sprites wherever possible."

    Would fullscreen mode set to crop and manually scaling all your sprites on their creation be faster than fullscreen set to scale?

    I have a call javascript plugin that in

    every 0.1 second -> run javascript function
                      set global variable to read return function

    is this inefficient? I'm using it for accelerometer in appmobi as the touch plugin accelerometer is buggy

    huge thank you in advance to someone that can provide answers to these. cheers!

  • wow, almost forgot about this one :)

    one more, will setting the animation speed to 0 for one frame only objects make a difference?

    also does setting a minimal triangle collision mask has an impact if the sprite DOESN'T collide with anything?

  • would setting visibility to invisible for objects outside layout speed up the game?

    Nope, this will have no effect.

    TW, typo in the Performance tips

    Thanks, fixed!

    ould fullscreen mode set to crop and manually scaling all your sprites on their creation be faster than fullscreen set to scale?

    Probably not - if it's hardware accelerated it will probably have no effect either way, but even if software rendered, scaling sprites is probably as much processing as scaling the whole display.

    have a call javascript plugin that in

    every 0.1 second -> run javascript function
                      set global variable to read return function

    Generally it's not possible to answer "Is X efficient?" questions, especially when involving third party plugins which isn't our code, but I would guess if you're only doing it 10 times a second it will be perfectly fine. (FYI I've built-in the AppMobi accelerator to the Touch object for the next build)

    ill setting the animation speed to 0 for one frame only objects make a difference?

    Nope, none.

    Everything important has been mentioned in the Performance Tips manual entry - anything not mentioned there is probably not likely to have any significant effect. Any important little tweaks you can make to improve performance are already written in the article.

  • great, thank you very much for a detailed answer.

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