Пример #1
0
        public void Update()
        {
            // TODO: need to disable changed events while doing this

            StatisticsList.Clear();

            StatisticsList.Add("Frame rate: " + _statistics.FrameRate);
            StatisticsList.Add("Number of quad nodes: " + _statistics.NumberOfQuadNodes);
            StatisticsList.Add("Number of quad nodes per level: " + GetQuadNodesPerLevel());
            StatisticsList.Add("Highest level: " + GetHighestQuadNodeLevel());
            StatisticsList.Add("Number of quad meshes rendered per frame: " + _statistics.PreviousNumberOfQuadMeshesRendered);
            StatisticsList.Add("Number of quad node splits scheduled per interval: " + _statistics.NumberOfSplitsScheduledPerInterval);
            StatisticsList.Add("Number of quad node splits canceled per interval: " + _statistics.NumberOfSplitsCanceledPerInterval);
            StatisticsList.Add("Number of pending quad node splits: " + _statistics.NumberOfPendingSplits);
            StatisticsList.Add("Number of pending quad node merges: " + _statistics.NumberOfPendingMerges);
            StatisticsList.Add("Camera altitude: " + _statistics.CameraAltitude.ToString("F0") + " m (" + DoubleMathHelper.MetersToFeet(_statistics.CameraAltitude).ToString("F0") + " ft) ASL");

            ResetPerIntervalStatistics();
        }