Is NetworkArray optimized to only send the changed elements

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Fusion.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Is NetworkArray optimized to only send the changed elements

Siddhant
2022-03-11 11:51:21

If i use a network array of a given capacity does Fusion send the whole NetworkArray each time an element is changed or does it sync only the changed elements

For example - I create a network array of capacity of 100 elements but only 3 elements are changed so is the whole array of size 100 sent through the network or just the 3 elements are sent.

Comments

ramonmelo
2022-03-14 14:46:32

Hi @Siddhant ,

Fusion always sends only the delta between peers.

So, if you change only a few elements of the arrays, only those elements will be included in the updates sent to other peers.

You can read more about the topic here: https://doc.photonengine.com/en-us/fusion/current/manual/state-transfer

--

Ramon Melo

Photon Fusion Team

Back to top