Beispiel #1
0
        public static void AlwaysUpdate(GameWindow window, GameTime gameTime)
        {
            background.Update(window, 200f, gameTime);

            InputHandler.Update(gameTime);
            MouseHandler.Update();
            UpdateTick();

            if (DebuggerIsActive)
            {
                double x = 2;
                x = Math.Pow(x, 20);
                int usage = ((int)GC.GetTotalMemory(false) / (int)x);
                window.Title = $"Simpsons - Development - Build (0.2.0) - {frameCounter.FormattedFPS()} - {usage}MB";
            }
        }