private void GameProc() { while (true) { if (GameThreadPaused) { Thread.Sleep(250); } RunNextThreadAction(); if (LastFrameState != Game.CurrentState) { _Owner.SetDisplayMode(Game.CurrentState.SupportedDisplayMode); } if (Game.CurrentState != null && !Game.CurrentState.GameProcSuspended) { Game.GameProc(); } _Presenter.Present(); Thread.Sleep(5); } }
public void SetDisplayMode(GameState.DisplayMode pMode) { GameOwner?.SetDisplayMode(pMode); }