Is NetworkArray optimized to only send the changed elements
The whole answer can be found below.
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).
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
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