playMaker

Author Topic: Infinite Loop !  (Read 3016 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Infinite Loop !
« on: March 12, 2013, 09:22:03 AM »
is it possible to stop unity when it happen?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Infinite Loop !
« Reply #1 on: March 12, 2013, 09:41:52 AM »
From what I've seen it stops itself.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Infinite Loop !
« Reply #2 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Infinite Loop !
« Reply #3 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Red

  • Hero Member
  • *****
  • Posts: 563
Re: Infinite Loop !
« Reply #4 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.

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Infinite Loop !
« Reply #5 on: March 12, 2013, 01:29:58 PM »
thanks for the tip, should be nice.