Photon Network Traffic Reduction [URGENT]

Hi,
We were trying to reduce the photon network traffic for a game we were working on. Our current game has a sendRate and sendRateOnSerialize values of 10. We are also using Unreliable instead of Unreliable on Change as of now. Changing that did help a bit, but in a case where players are continuously moving we needed further traffic reduction.

We were using OnPhotonSerializeView to send 5 short values which as per https://doc.photonengine.com/en-us/realtime/current/reference/serialization-in-photon should result in a data packet of 15bytes (3 = type_info(short) + sizeof(short) per short).

We wanted to optimize our total network traffic shown in Photon Stats GUI by further 40% so decided to send only an int and a short which should result in a data packet of 8bytes (5 for int, 3 for short).

Our total network traffic after the above optimization seems to be reduced only by 7-10% when we were expecting about 40%. Isn't sending a different data type with a smaller size an important multiplying factor adding to network traffic? . Can we know what other major factors may affect the total network traffic shown in Photon Stats GUI.

Thanks,
Jay Kamat

Comments

  • JayKamat said:

    Hi,
    We were trying to reduce the photon network traffic for a game we were working on. Our current game has a sendRate and sendRateOnSerialize values of 10. We are also using Unreliable instead of Unreliable on Change as of now. Changing that did help a bit, but in a case where players are continuously moving we needed further traffic reduction.

    We were using OnPhotonSerializeView to send 5 short values which as per https://doc.photonengine.com/en-us/realtime/current/reference/serialization-in-photon should result in a data packet of 15bytes (3 = type_info(short) + sizeof(short) per short).

    We wanted to optimize our total network traffic shown in Photon Stats GUI by further 40% so decided to send only an int and a short which should result in a data packet of 8bytes (5 for int, 3 for short).

    Our total network traffic after the above optimization seems to be reduced only by 7-10% when we were expecting about 40%. Isn't sending a different data type with a smaller size an important multiplying factor adding to network traffic? . Can we know what other major factors may affect the total network traffic shown in Photon Stats GUI.

    Thanks,
    Jay Kamat

    Hi, anyone has any suggestions regarding saving all this network traffic?