Timer: Run to Completion?

What exactly is Run to Completion?

Is it necessary?

Is it worth using it?

Comments

  • FajlajpFajlajp Member Posts: 666

    It depends on what you doing so it's hard to says when it's necesary and worth using.
    "Run to completion" basiclly means that your timer is still activate even if the event conditions suddenly become false.

  • colandercolander Member Posts: 1,610

    It means whatever code is in the timer will execute even if the condition/s for rule it is in are no longer valid. If you use the After condition and check run to completion the timer will keep running until it is destroyed by either destroying the actor it is in or changing scene.

    If you only have a couple of timers and the scene is not memory intensive it won't matter but should obviously be avoided where possible. Search for the thread "Timers are for chumps" it has a lot of good alternatives to timers.

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40

    @Fajlajp said:
    It depends on what you doing so it's hard to says when it's necesary and worth using.
    "Run to completion" basiclly means that your timer is still activate even if the event conditions suddenly become false.

    Thanks for that :)

    @colander said:
    It means whatever code is in the timer will execute even if the condition/s for rule it is in are no longer valid. If you use the After condition and check run to completion the timer will keep running until it is destroyed by either destroying the actor it is in or changing scene.

    If you only have a couple of timers and the scene is not memory intensive it won't matter but should obviously be avoided where possible. Search for the thread "Timers are for chumps" it has a lot of good alternatives to timers.

    Thanks for showing me that thread. It helped a lot.

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40
    edited January 2015

    broke it

    @‌Fajlajp

    Thanks for that :smile:

    @colander

    Thanks for showing me that thread. It helped a lot.

Sign In or Register to comment.