playMaker

Author Topic: "Show state Loop Counts" only goes to 1  (Read 1788 times)

purbanics

  • Junior Playmaker
  • **
  • Posts: 55
"Show state Loop Counts" only goes to 1
« on: March 17, 2014, 04:38:12 AM »
I enabled this debug option, small numbers appeared next to each state in the FMS, then I expected it to count how many times each state is used in the game, but it only incremented to 1, not any further.

How should this work? I only found some info in the release notes"
"Debug option to show the loop count for each state. Found in the Debug Toolbar menu."

Br,
Peter

purbanics

  • Junior Playmaker
  • **
  • Posts: 55
Re: "Show state Loop Counts" only goes to 1
« Reply #1 on: March 17, 2014, 04:47:48 AM »
Hmmm, sometimes they increment past 1, but not sure when and why yet.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: "Show state Loop Counts" only goes to 1
« Reply #2 on: March 17, 2014, 04:56:15 AM »
It shows how many times a state is entered in a single frame. Each update the count resets to zero. This is useful when you're making loops to do a lot of work in  a single update (E.g., spawn a bunch of prefabs, do a lot of calculations with multiple states...).

I'll probably add other debug info soon...

purbanics

  • Junior Playmaker
  • **
  • Posts: 55
Re: "Show state Loop Counts" only goes to 1
« Reply #3 on: March 17, 2014, 05:50:30 AM »
Ah, OK, so it counts in a single frame.
Please document this somewhere.

Br,
Peter