playMaker

Author Topic: PlayMaker stats  (Read 952 times)

jeanfabre

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 3419
    • View Profile
    • Email
PlayMaker stats
« on: January 11, 2012, 01:15:35 AM »
Hi,

 Started a small editor window to output general statistics about the fsms. Drop this file in a "Editor" folder in your project folder. Then it will be available in the menu: "PlayMaker/Editor windows/stats"

 I started this because I desperately need to have a more general overview to find potential functions duplicates and other things to improve.

  It's only started, so don't expect anything useful, but it's already fun :) that's why I am sharing this so soon. If you have ideas on what would like to see in this stat window, just shout oud enough :)

 Right now it outputs the number of fsms, the total number of variables, total number of events, and total number of states. But the plan is to mimic the fsm component "Info" section and basically extract as much as I can with the current available api. I want to check for duplicated events, duplicates variables, biggest fsm, external calls, etc etc. The global stats will also output more granular on top of the general numbers ( like numbers of fsmInt, Fsm Vector3 etc etc, global variables, global events, etc.

The biggest project I have so far has the following:

73 Fsms
678 States
202 variables
1324 events

 now, I feel better invoicing  ;D

What are your stats? would be cool to see this kind of stats we get from the community. The winner ( no cheating please, :P) ) will get..... our empathy... ;)

 Bye,

 Jean


qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 508
    • View Profile
    • Email
Re: PlayMaker stats
« Reply #1 on: January 12, 2012, 11:23:59 AM »
How do i rate?

115 FSMs
546 States
313 variables
580 Events

Q

jeanfabre

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 3419
    • View Profile
    • Email
Re: PlayMaker stats
« Reply #2 on: January 12, 2012, 11:01:43 PM »
nice :)

 I have to do more work on not counting unused events I think.

Bye,

 Jean

speedything

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: PlayMaker stats
« Reply #3 on: February 03, 2012, 07:58:07 PM »
FSMs : 99
States: 327
Variables: 248
Events: 273

I better make my next FSM a good one (and not the boring 2-state one I had planned!)  :D

brendang

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Out to Play Interactive
    • Email
Re: PlayMaker stats
« Reply #4 on: May 01, 2012, 08:43:14 PM »
Wow...complex.  And would projects with this many FSMs run on mobile platforms like iPad?

jeanfabre

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 3419
    • View Profile
    • Email
Re: PlayMaker stats
« Reply #5 on: May 01, 2012, 11:12:58 PM »
Hi,

The number of fsm components or indeed scripts running isn't generally the problem on mobile, it's more what you do inside it and how efficient is it, for example, don't check for a variable on each update, instead work out a solution to inform about a change of value. Don't do complex manipulation every update when you can do it once when necessary, things like that.

 and most likely you will struggle with the meshes, materials, textures and physics ( if there is). This is where the real optimization and potential show stopper are really, especially on mobile.

Bye,

 Jean

brendang

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • Out to Play Interactive
    • Email
Re: PlayMaker stats
« Reply #6 on: May 02, 2012, 07:09:18 AM »
Great info, Jean...thanks.

I had just read somewhere in the Unity forum about some other non-visual FSM plugin that mentioned things could get heavy. Good old project optimization can absolve a myriad of sins.