Esempio n. 1
0
 public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
 {
     if (AnalyticsEnabled)
     {
         Parallel.Start(() => { SendSessionEndInternal(sessionStatistics); });
     }
 }
Esempio n. 2
0
        private static void SendSessionEndInternal(MyEndSessionStatistics sessionStatistics)
        {
            if (m_oreTypes == null)
            {
                MyDefinitionManager.Static.GetOreTypeNames(out m_oreTypes);
            }

            ReportDesignInternal("Session:Play Time:Total", value: sessionStatistics.TotalPlaytimeInSeconds);
            ReportDesignInternal("Session:FPS:Minimum FPS", value: sessionStatistics.MinFPS);
            ReportDesignInternal("Session:FPS:Maximum FPS", value: sessionStatistics.MaxFPS);
            ReportDesignInternal("Session:FPS:Average FPS", value: sessionStatistics.AverageFPS);
            ReportDesignInternal("Session:Play Time:Jetpack Time", value: sessionStatistics.JetpackTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Small Ship Time", value: sessionStatistics.SmallShipTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Big Ship Time", value: sessionStatistics.BigShipTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Foot Time", value: sessionStatistics.FootTimeInSeconds);
            ReportDesignInternal("Session:Resources:Total Amount Mined", value: (float)sessionStatistics.AmountMined.Values.Sum(s => (float)s));

            for (int i = 0; i < m_oreTypes.Length; i++)
            {
                MyFixedPoint mined = 0;
                sessionStatistics.AmountMined.TryGetValue(m_oreTypes[i], out mined);
                ReportDesignInternal("Session:Resources:Amount " + m_oreTypes[i] + " mined", value: (float)mined);
            }
            ReportDesignInternal("Session:Resources:Positive Integrity Total", value: sessionStatistics.PositiveIntegrityTotal);
            ReportDesignInternal("Session:Resources:Negative Integrity Total", value: sessionStatistics.NegativeIntegrityTotal);
        }
Esempio n. 3
0
 public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
 {
     if (!MyCompilationSymbols.RenderOrGpuProfiling)
     {
         Parallel.Start(() => { SendSessionEndInternal(sessionStatistics); });
     }
 }
Esempio n. 4
0
 public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
 {
 }
        public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
        {

        }
        private static void SendSessionEndInternal(MyEndSessionStatistics sessionStatistics)
        {
            if (m_oreTypes == null)
                MyDefinitionManager.Static.GetOreTypeNames(out m_oreTypes);

            ReportDesignInternal("Session:Play Time:Total", value: sessionStatistics.TotalPlaytimeInSeconds);
            ReportDesignInternal("Session:FPS:Minimum FPS", value: sessionStatistics.MinFPS);
            ReportDesignInternal("Session:FPS:Maximum FPS", value: sessionStatistics.MaxFPS);
            ReportDesignInternal("Session:FPS:Average FPS", value: sessionStatistics.AverageFPS);
            ReportDesignInternal("Session:Play Time:Jetpack Time", value: sessionStatistics.JetpackTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Small Ship Time", value: sessionStatistics.SmallShipTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Big Ship Time", value: sessionStatistics.BigShipTimeInSeconds);
            ReportDesignInternal("Session:Play Time:Foot Time", value: sessionStatistics.FootTimeInSeconds);
            ReportDesignInternal("Session:Resources:Total Amount Mined", value: (float)sessionStatistics.AmountMined.Values.Sum(s => (float)s));

            for (int i = 0; i < m_oreTypes.Length; i++)
            {
                MyFixedPoint mined = 0;
                sessionStatistics.AmountMined.TryGetValue(m_oreTypes[i], out mined);
                ReportDesignInternal("Session:Resources:Amount " + m_oreTypes[i] + " mined", value: (float)mined);
            }
            ReportDesignInternal("Session:Resources:Positive Integrity Total", value: sessionStatistics.PositiveIntegrityTotal);
            ReportDesignInternal("Session:Resources:Negative Integrity Total", value: sessionStatistics.NegativeIntegrityTotal);
        }
 public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
 {
     if (AnalyticsEnabled)
         Parallel.Start(() => { SendSessionEndInternal(sessionStatistics); });
 }
 public static void SendSessionEnd(MyEndSessionStatistics sessionStatistics)
 {
     if (!MyCompilationSymbols.RenderOrGpuProfiling)
         Parallel.Start(() => { SendSessionEndInternal(sessionStatistics); });
 }