|
@ -27,8 +27,9 @@ namespace SemiColinGames { |
|
|
readonly Camera camera = new Camera(); |
|
|
readonly Camera camera = new Camera(); |
|
|
|
|
|
|
|
|
public SneakGame() { |
|
|
public SneakGame() { |
|
|
graphics = new GraphicsDeviceManager(this); |
|
|
|
|
|
graphics.SynchronizeWithVerticalRetrace = false; |
|
|
|
|
|
|
|
|
graphics = new GraphicsDeviceManager(this) { |
|
|
|
|
|
SynchronizeWithVerticalRetrace = false |
|
|
|
|
|
}; |
|
|
IsFixedTimeStep = true; |
|
|
IsFixedTimeStep = true; |
|
|
TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 60); |
|
|
TargetElapsedTime = TimeSpan.FromSeconds(1.0 / 60); |
|
|
IsMouseVisible = true; |
|
|
IsMouseVisible = true; |
|
@ -107,7 +108,7 @@ namespace SemiColinGames { |
|
|
string fpsText = $"{GraphicsDevice.Viewport.Width}x{GraphicsDevice.Viewport.Height}, " + |
|
|
string fpsText = $"{GraphicsDevice.Viewport.Width}x{GraphicsDevice.Viewport.Height}, " + |
|
|
$"{fpsCounter.Fps} FPS"; |
|
|
$"{fpsCounter.Fps} FPS"; |
|
|
if (paused) { |
|
|
if (paused) { |
|
|
fpsText = fpsText + " (paused)"; |
|
|
|
|
|
|
|
|
fpsText += " (paused)"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Debug.SetFpsText(fpsText); |
|
|
Debug.SetFpsText(fpsText); |
|
|