doubts about performance.

Not favoritedFavorited Favorited 0 favourites
  • 4 posts
From the Asset Store
Its just different, enjoyable and no doubt worth playing !
  • From what I understand, I can check the events through 3 systems.

    1) Every tick.

    2) Each seconds.

    3) without any specification.

    I know that "every tick" increases performance overhead, but my question is: Is checking without specification worse? Or is it only checked at the moment the events occur?

  • The first and second will occur every tick.

    Only events with green arrows are triggers and are waiting to be triggered.

    But don't worry, your events that are used every tick have a small load and will not reduce your FPS.

    Construct3 has a good debugging mode and you can see the load by groups. If you ever see that you have too much CPU load, you can put different pieces of code into different groups and find out how the event is eating up resources.

  • 1- Gets a check every tick. "Triggers" every tick. You can just put "8 directions is enabled" and it will be the same thing.

    2- Gets a check every tick. But only triggers when a condition is met: every 0.3 seconds.

    3- Gets a check every tick. But only triggers when the condition is met.

    4- Black event/no condition: "Triggers" every tick.

    Keep in mind that "on trigger" events also gets checked every tick.

    If you have "on collision" for 100 object that means 100 collision checks every tick EVEN IF THEY ARE NOT COLLIDING. And the actions that follow will trigger once when there is a collision.

    This was a problem for me in a game with hundred thousand+ entities (enemies,bullets) where i was wasting millions of unnecessary collision checks in things that didn't have a chance of ever colliding and for things that didn't even exist yet haha.

    TLDR: The entire code gets check every tick, or at least the first event in nested events situations.

    That's the way I understand it from the test I performed, If I'm wrong please let me know.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is likely negligible difference with the events you showed. Usually it's a waste of time to worry about the performance of small details like this. See Performance Tips in the manual for our advice on the subject.

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