playMaker

Author Topic: Photon RPC List  (Read 1601 times)

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Photon RPC List
« on: August 24, 2020, 03:28:47 AM »
Hello,

Is there a way to populate Photon's RPC List for optimized event sending?
Looking for this for PUN Classic
https://doc.photonengine.com/en-us/pun/v1/gameplay/rpcsandraiseevent
in section "Shortcuts For RPC Names".

I see that I could manually add RPCs to the list in Photon Settings, but would it really find them because of Playmaker RPC action and also it is a risk to manually add them and lose them eventually on updates. Maybe somehow Playmaker action can be tied to the automatic Refresh mechanics?

Thanks!

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Photon RPC List
« Reply #1 on: August 31, 2020, 02:52:55 AM »
bump:)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon RPC List
« Reply #2 on: September 01, 2020, 10:47:48 AM »
Hi,

 Good question!

 unfortunatly, the next step for optimisation with this, is to script the various rpc themselves and not rely on sending actual playmaker global event via the playmaker support for pun, because then we can't rely on their names.

you can then always send back a global event upon reception of your custom scripted rpc, but at least you control the rpc handling fully with your scripts.

 The cheap hack is to make global events with one letter only, and then you are close to optimal optimization before moving onto scripted variant.

Bye,

 Jean

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Photon RPC List
« Reply #3 on: September 02, 2020, 10:24:57 AM »
Thanks Jean, makes sense :D