Controlling the opening and closing of all doors with a single manager.

"Hello everyone. Imagine that I have 50 doors on a stage, and normally, all doors have a Photon View component and the synchronization of my RPC methods is provided through this component. If I instead synchronize them through a single Photon View on a manager, would I encounter any bottleneck, data loss, or transmission delay issues?"


  • Tobias
    Tobias admin
    edited April 14

    It can be much more efficient to handle them this way and there is no delay or other problem associated.

    In the end, it is a matter of identifying the networked objects. If you have a deterministic ID for each, you can easily send RPCs referring to them. Probably the Master Client should keep track of the state of them all and send an update when needed (e.g. set a custom property to keep everyone on the same page about all doors).

    Using a bit flag in a byte[] is much much leaner than sending 50x the state of Door X.