Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: 600 on August 24, 2020, 03:28:47 AM

Title: Photon RPC List
Post by: 600 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!
Title: Re: Photon RPC List
Post by: 600 on August 31, 2020, 02:52:55 AM
bump:)
Title: Re: Photon RPC List
Post by: jeanfabre 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
Title: Re: Photon RPC List
Post by: 600 on September 02, 2020, 10:24:57 AM
Thanks Jean, makes sense :D