Ejemplo n.º 1
0
        private void UpdateDataString()
        {
            SimSpeed   = "Simulation speed: " + Generics.CutDecimals(GameGlobals.SimulationSpeedMuliplicator / GameGlobals.MultiplierUnit, 2) + " " + Units.SimulationSpeed + (Parent.Pause ? " (Paused)" : "");
            FPSString  = "FPS: ";
            UniverseID = "Universe: " + (CurrentUniverse.ID + 1);
            Zoom       = "Zoom: " + Generics.CutDecimals(Parent.CamControl.Camera.Zoom, 2);
#if !DEBUG
            FPS = Generics.RoundFloat(1F / (float)Parent.CurrentGameTime.ElapsedGameTime.TotalSeconds);
#endif

            FPSString    += FPS;
            PlanetCount   = "Planet count: " + CurrentUniverse.Planets.Count;
            PhysCoreCount = "Physical cores: " + CurrentUniverse.GetPhysicalCoreCount().ToString();
            LogCoreCount  = "Logical cores: " + CurrentUniverse.GetLogicalCoreCount().ToString();
            UsedCores     = "Used cores: " + CurrentUniverse.UsedProcessorCoreCount().ToString();
            Distribution  = "Distribution: " + Parent.GetDistributionName();
        }