playMaker

Author Topic: PlayMaker stats  (Read 6395 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
PlayMaker stats
« 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

 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
« Last Edit: June 24, 2015, 11:03:36 AM by jeanfabre »

qholmes

  • 1.2 Beta
  • Hero Member
  • *
  • Posts: 509
    • View Profile
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
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

  • Playmaker 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

  • Junior Playmaker
  • **
  • Posts: 59
    • View Profile
    • Out to Play Interactive
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
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

  • Junior Playmaker
  • **
  • Posts: 59
    • View Profile
    • Out to Play Interactive
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.

Azamat

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: PlayMaker stats
« Reply #7 on: June 16, 2015, 07:17:28 AM »
Not working(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: PlayMaker stats
« Reply #8 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

Azamat

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
Re: PlayMaker stats
« Reply #9 on: June 25, 2015, 06:16:48 PM »
Thank you Jean. Playmaker Stats now working)

Roger Lee

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
Re: PlayMaker stats
« Reply #10 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 :)

purpledog770

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: PlayMaker stats
« Reply #11 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! :)
Have you ever been to my school? It's called The Folkestone School for Girls. Make sure that your floor is beautiful and shiny with chapel parket

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2265
    • View Profile
    • jinxtergames
Re: PlayMaker stats
« Reply #12 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

Roger Lee

  • Playmaker Newbie
  • *
  • Posts: 22
    • View Profile
Re: PlayMaker stats
« Reply #13 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!!

FScarborough63

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: PlayMaker stats
« Reply #14 on: August 16, 2016, 03:32:20 AM »
It's a very useful tool, you can analyze your own game. Great article!
Welcome guys! You should know that I am an assistant at kontener na śmieci poznań. This place was established on 01-04-1974 with an identification code of W97041. Q99 is the HLHG code of this institution. The building is placed at Crwys Medical Centre, Wedol Road, He