FerretEngine/src/FeGame.cs
/// <summary>
/// This is called when the game should draw itself.
/// </summary>
/// <param name="gameTime">Provides a snapshot of timing values.</param>
This is called when the game should draw itself.
This is called when the game should draw itself .
protected override void Draw(GameTime gameTime)
        {
	        FeGraphics.Render(gameTime);
	        _gui.Draw();
	        _debugLayout.Draw();
            base.Draw(gameTime);
            _fpsCounter++;
            _counterElapsed += gameTime.ElapsedGameTime;
            if (_counterElapsed >= TimeSpan.FromSeconds(1))
            {
#if DEBUG
                Window.Title = $"{Title} [{_fpsCounter} fps -  {(GC.GetTotalMemory(false) / 1048576f):F} MB]";
#endif
                FPS = _fpsCounter;
                _fpsCounter = 0;
                _counterElapsed -= TimeSpan.FromSeconds(1);
            }
        }
protected override void Draw ( GameTime gameTime ) { FeGraphics . Render ( gameTime ) ; _gui . Draw ( ) ; _debugLayout . Draw ( ) ; base . Draw ( gameTime ) ; _fpsCounter ++ ; _counterElapsed += gameTime . ElapsedGameTime ; if ( _counterElapsed >= TimeSpan . FromSeconds ( 1 ) ) { if DEBUG Window . Title = $" { Title }  [ { _fpsCounter }  fps -   { ( GC . GetTotalMemory ( false ) / 1048576f ) : }  MB] " ; endif FPS = _fpsCounter ; _fpsCounter = 0 ; _counterElapsed -= TimeSpan . FromSeconds ( 1 ) ; } }
This is called when the game should draw itself.
This is called when the game should draw itself .
//Frame counter
gameTime
GameTime
Provides a snapshot of timing values.
Provides a snapshot of timing values .