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

Calculate messages per second.

$
0
0
Hi,

I'm want track the messages per second of my game, but the only way that I have found is checking the analytic panel in account dashboard of your web site, so I'm trying to calculate it in run time, investigating in the documentation and the API I encounter with 'TrafficStats' and 'PhotonNetwork.networkingPeer.VitalStatsToString()' which return some important info, the thing is that I'm not sure what these info means, so maybe you guys can clarify me,

TotalCommandsInPackets
Calls of Send
Dispatch (return 2 parameters with this name)

so basically what I wanna do is check what of all these parameters are the messages that are outgoing and compare it in a interval of 1 second.

Or if you guys know another method to check the messages per second in run time will be great.

Regards.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>