Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Questions about the Photon Cloud script "PhotonStatsGui".

$
0
0
http://imgur.com/pqMSESa
After the script collects data during one second, I display the data in GUI and reset the traffic - PhotonNetwork.networkingPeer.TrafficStatsReset ();
In the room there are two players and 20 bots.

1) I send Vector3 movement of 20 bots - script CubeLerp,OnPhotonSerializeView. Why it takes 6000 bytes? Veсtor3 -16 * 200 bytes (10 positions per second * 20 bots) = 3200 bytes!
2) What are the: In * 18, TotalPacketCount = 10, TotalCommnadsInPackets = 20? It is not clear, how does this relate to the number of packages. Logically, there should be 200 messages in a second from bot's positions (the Photon Cloud documentation says that movement packages combine in a unique way). How do the combine? What is the formula for calculating? What is the difference between the "package command" and "package"?

Viewing all articles
Browse latest Browse all 8947

Trending Articles