playMaker

Author Topic: Action + scripts to use MasterScheduler  (Read 87 times)

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Action + scripts to use MasterScheduler
« on: July 07, 2019, 09:49:03 PM »
Hello Playmakers  :)

I recently made a few scripts for a friend who wanted to use the asset MasterScheduler to update their fsm's- this is for performance purposes- it allows you to throttle your fsm's-

It would only be useful if you are having performance problems because you are using a lot of really heavy fsm's or hundreds/thousands of them-

The scripts + info is here https://github.com/mdotstrange/masterSchedulerScripts
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Action + scripts to use MasterScheduler
« Reply #1 on: July 08, 2019, 06:18:47 AM »
Hi,

 uhm!!! very interesting.

Have you been able to run some benchmark and measure gains with the profiler?

Bye,

 Jean

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Action + scripts to use MasterScheduler
« Reply #2 on: July 08, 2019, 02:45:52 PM »
I've done benchmarks using the system with Behavior Designer which shows significant performance gains- haven't done any Playmaker tests yet.

From my other tests you don't really see any noticeable gains unless you are using hundreds of instances- though it will always prevent cpu spikes by limiting the number of updates run-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14210
  • Official Playmaker Support
    • View Profile
Re: Action + scripts to use MasterScheduler
« Reply #3 on: July 11, 2019, 01:17:13 AM »
Hi,

 Cool! Let us know when you get a chance to make some benchmark!

Bye,

 Jean