protected override void Draw() { GameTime gameTime = new GameTime(_timer.Elapsed, _timer.Elapsed - _elapsed); _elapsed = _timer.Elapsed; if (_stopWatch.Elapsed > _sampleSpan) { Fps = (float)_sampleFrames / (float)_stopWatch.Elapsed.TotalSeconds; _stopWatch.Reset(); _stopWatch.Start(); _sampleFrames = 0; OnFpsUpdated(); } if (Sheet != null) { GraphicsDevice.Clear(Sheet.ClearColor); } else { GraphicsDevice.Clear(ClearColor); } if (Sheet != null) { Sheet.Apply(gameTime, _drawBatch); } _sampleFrames++; }