Exemple #1
0
        private static void Summarize(ParticleSystemCheckResult item)
        {
            item.Summary             = new Summary();
            item.Summary.PrefabName  = item.ParticleSystemPath;
            item.Summary.DrawCallAvg = item.DrawCalls.Average();
            item.Summary.DrawCallMax = item.DrawCalls.Max();

            item.Summary.FrameTimeAvg = item.FrameTimes.Average();
            item.Summary.FrameTimeMax = item.FrameTimes.Max();

            item.Summary.MemoryUsageAvg = item.MemoryUsages.Average();
            item.Summary.MemoryUsageMax = item.MemoryUsages.Max();

            item.Summary.ParticleCountAvg = item.ParticleCounts.Average();
            item.Summary.ParticleCountMax = item.ParticleCounts.Max();
            item.Summary.ParticleCountSum = item.ParticleCounts.Sum();
        }
Exemple #2
0
 private void Awake()
 {
     m_PersistenceProfileResults   = new ProfileResults(m_ResultsPersistencePath);
     m_ParticleSystemProfileResult = new ParticleSystemCheckResult();
     m_ParticleSystemProfileResult.ParticleSystemPath = m_PrefabPath;
 }
Exemple #3
0
 public void Append(ParticleSystemCheckResult item)
 {
     Summarize(item);
     m_ResultsObj.ParticleSystemCheckResults.Add(item);
 }