Exemple #1
0
    public void lateUpdate()
    {
        ExitGames.Client.Photon.TrafficStatsGameLevel trafficStatsGameLevel = PhotonNetwork.networkingPeer.TrafficStatsGameLevel;
        string text = string.Format("Out|In|Sum:{0,4}|{1,4}|{2,4}", trafficStatsGameLevel.TotalOutgoingMessageCount, trafficStatsGameLevel.TotalIncomingMessageCount, trafficStatsGameLevel.TotalMessageCount);

        text = text + "\n(in)Total KBytes|Packs\n" + PhotonNetwork.networkingPeer.TrafficStatsIncoming.TotalPacketBytes / 1024 + "|" + PhotonNetwork.networkingPeer.TrafficStatsIncoming.TotalPacketCount;
        text = text + "\n(out)Total KBytes|Packs\n" + PhotonNetwork.networkingPeer.TrafficStatsOutgoing.TotalPacketBytes / 1024 + "|" + PhotonNetwork.networkingPeer.TrafficStatsOutgoing.TotalPacketCount;
        text = text + "\n" + string.Format("ping: {6}[+/-{7}]ms\nlongest delta between\nsend: {0,4}ms disp: {1,4}ms\nlongest time for:\nev({3}):{2,3}ms op({5}):{4,3}ms", new object[] { trafficStatsGameLevel.LongestDeltaBetweenSending, trafficStatsGameLevel.LongestDeltaBetweenDispatching, trafficStatsGameLevel.LongestEventCallback, trafficStatsGameLevel.LongestEventCallbackCode, trafficStatsGameLevel.LongestOpResponseCallback, trafficStatsGameLevel.LongestOpResponseCallbackOpCode, PhotonNetwork.networkingPeer.RoundTripTime, PhotonNetwork.networkingPeer.RoundTripTimeVariance });
        text = text + "\n" + FengGameManagerMKII.instance.text_pause;
        FengGameManagerMKII.instance.PauseLabel(text);
    }