How interpolation works in the stack...

mataruamatarua Auckland, New ZealandMember Posts: 854
edited November 2013 in Working with GS (Mac)
I have observed something interesting... hypothetically, lets say this...

Change this A
Constrain this B
Interpolate C for 1 second
Rule: When this happens...

It seems the 'Rule: When this happens' does not fire until the 'Interpolate C for 1 second' is completed its 1 second... it's like a pause in the stack - is this true?

Cheers, M@

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    @matarua Hi M, as much s I've realised, no it's not true particularly… except to say it does depend on what "this" is in the rule "When this happens…"

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • mataruamatarua Auckland, New ZealandMember Posts: 854
    edited November 2013
    @gyroscope I have these aliens zoom in from space and change size with interpolation and you can't kill them until they finish zooming - I did not make it that way - that's the situation. I don't mind it. But it seemed to me like the cycle of the stack was paused on interpolation and thought I would toss that out there to see what came back... kind of interesting!

    Might I also add that this is a rule within a rule at the end of the stack.

    And now with experimentation if I take the rule out of the rule it will kill.

    So it leads me to believe that an interpolation can delay a rule within a rule.

    Interesting.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited November 2013

    @matura Oh yes, I see what you mean… I should have remembered that… thee are certain times when interpolate will not work until finished (although this doesn't apply to absolutely everything, not sound, for instance…)

    A possible solution is to wrap the Interpolate in a couple of timers… I say "possible" because I'm not 100% certain that this "tricks" it but perhaps worth a test… i.e:

    Timer For ?? seconds
    Timer Every 0 seconds
    Interpolate for ?? seconds

    (Maybe the first Timer isn't needed…)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • mataruamatarua Auckland, New ZealandMember Posts: 854
    @gyroscope I just removed the rule from within a rule - I had it in there when I did not really need to I think! On the optimisation trail... :!!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited November 2013

    To the optimisation trail and beyond!! :D

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.