Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: blackant on March 12, 2013, 09:22:03 AM

Title: Infinite Loop !
Post by: blackant on March 12, 2013, 09:22:03 AM
is it possible to stop unity when it happen?
Title: Re: Infinite Loop !
Post by: Lane on March 12, 2013, 09:41:52 AM
From what I've seen it stops itself.
Title: Re: Infinite Loop !
Post by: blackant on March 12, 2013, 11:06:57 AM
not this time ...
try to do something,

in first state, put a compare action
if 0=0 go back to state 1.

i made something like that...
forced to stop unity by Ctrl+alt+supp
Title: Re: Infinite Loop !
Post by: Lane on March 12, 2013, 11:27:12 AM
Odd, the once or twice I've done it I recall either PM or Unity catching the loop and pausing the game.

You could probably get out of that loop with a switch.
Title: Re: Infinite Loop !
Post by: Red on March 12, 2013, 12:14:59 PM
Yeah, I've noticed that the infinite loop detection doesn't seem to be kicking in afaik... but, maybe that's how the systems I have are set up.

If you're worried, a good practice for the debugging stage that i use to help prevent an infinite loop from bogging down my computer is to add in a "next frame event" set to "finished" in every state that just uses a finished to click over to the next one. It doesn't stop the infinite loop from occouring but it does give your comp some breathing room so that it's easier to stop the preview when it occours.
Title: Re: Infinite Loop !
Post by: blackant on March 12, 2013, 01:29:58 PM
thanks for the tip, should be nice.