playMaker

Author Topic: Call Method vs Custom Playmaker Action [SOLVED]  (Read 1743 times)

JKWater

  • Playmaker Newbie
  • *
  • Posts: 19
Call Method vs Custom Playmaker Action [SOLVED]
« on: December 20, 2017, 10:31:40 AM »
Is a playmaker action faster than a call method action (both doing the exact same thing) or are they the same?

I have lots of different call method actions being run per frame, would it be better performance wise if I made a custom playmaker action for each call method action?

Thanks
« Last Edit: December 21, 2017, 07:28:43 AM by JKWater »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Call Method vs Custom Playmaker Action
« Reply #1 on: December 21, 2017, 01:14:56 AM »
Hi,

 yes, it's better to make a dedicated custom action instead of using CallMethod or invoke or SendMessage action, they are all relying on Reflections which always worse then a direct call using a regular script ( a custom action is a regular script).

 The same applies with SetProperty and GetProperty.

Bye,

 Jean