Playmaker Forum

Playmaker Help & Tips => Playmaker Tips & Tricks => Topic started by: jeanfabre on January 11, 2012, 01:15:35 AM

Title: PlayMaker stats
Post by: jeanfabre on January 11, 2012, 01:15:35 AM
Hi,

 Started a small editor window to output general statistics about the fsms.

Download the package here (https://github.com/jeanfabre/PlayMaker--Ecosystem--Browser/raw/master/Packages/PlayMakerStats.unitypackage)

 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
Title: Re: PlayMaker stats
Post by: qholmes on January 12, 2012, 11:23:59 AM
How do i rate?

115 FSMs
546 States
313 variables
580 Events

Q
Title: Re: PlayMaker stats
Post by: jeanfabre on January 12, 2012, 11:01:43 PM
nice :)

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

Bye,

 Jean
Title: Re: PlayMaker stats
Post by: speedything 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
Title: Re: PlayMaker stats
Post by: brendang on May 01, 2012, 08:43:14 PM
Wow...complex.  And would projects with this many FSMs run on mobile platforms like iPad?
Title: Re: PlayMaker stats
Post by: jeanfabre 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
Title: Re: PlayMaker stats
Post by: brendang 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.
Title: Re: PlayMaker stats
Post by: Azamat on June 16, 2015, 07:17:28 AM
Not working(
Title: Re: PlayMaker stats
Post by: jeanfabre on June 24, 2015, 11:04:58 AM
Hi,

I updated the script, it's now a package. Get it from the original post of this thread.

It's been a while I wanted to do a beefed up version of this system, bot just stats but also for better introspection and searches, so I may include this within the Ecosystem soon.


 Bye,

 Jean
Title: Re: PlayMaker stats
Post by: Azamat on June 25, 2015, 06:16:48 PM
Thank you Jean. Playmaker Stats now working)
Title: Re: PlayMaker stats
Post by: Roger Lee on February 14, 2016, 08:30:59 AM
My current PC project.

FSMs: 199
States: 734
Local Variables: 395
Local Events: 451
Global Events: 0
Global Variables: 24

Except for the water system and the smooth camera controllers, it's all Playmaker.   I have a long way to go too :)
Title: Re: PlayMaker stats
Post by: purpledog770 on March 18, 2016, 07:57:50 AM
Wow, your editor is so useful. Thank you, now I can get my whole statistics and analyse them! :)
Title: Re: PlayMaker stats
Post by: djaydino on March 18, 2016, 11:34:00 AM
Hi,
Reworking and older game :

FSMs: 282
States: 3259
Local Variables: 664
Local Events: 2774
Global Events: 234
Global Variables: 112
Title: Re: PlayMaker stats
Post by: Roger Lee on June 11, 2016, 04:27:10 PM
My current PC project.

FSMs: 199
States: 734
Local Variables: 395
Local Events: 451
Global Events: 0
Global Variables: 24

Except for the water system and the smooth camera controllers, it's all Playmaker.   I have a long way to go too :)

UPDATE:

FSMs: 292
States: 1237
Local Variables: 494
Local Events: 904
Global Events: 0
Global Variables: 42

This thing is on track to have 1000+ FSM's!!
Title: Re: PlayMaker stats
Post by: FScarborough63 on August 16, 2016, 03:32:20 AM
It's a very useful tool, you can analyze your own game. Great article!
Title: Re: PlayMaker stats
Post by: George56 on August 23, 2016, 02:26:26 PM
Thanks to that I finally can see what mistakes I do. Great job, thanks for sharing soo much!
Title: Re: PlayMaker stats
Post by: krmko on January 28, 2017, 06:49:15 AM
Wow, i just found this one :)

FSMS: 469
States: 1176
Local Variables: 164
Local Events: 1410
Global Events: 20
Global Variables: 652

Looks like i could work on my skills haha
Title: Re: PlayMaker stats
Post by: marv on January 30, 2017, 05:23:29 AM
FSMs: 507
states: 2230
local variables: 1663
local events: 1870
global events: 122
global variables: 84

... and no end in sight.