Merge pull request #10089 from abcdefg30/shellmapCPU

Try to win a small amount of performance when the shellmap is disabled
This commit is contained in:
Matthias Mailänder
2015-12-31 12:22:14 +01:00
3 changed files with 12 additions and 14 deletions

View File

@@ -262,6 +262,7 @@ namespace OpenRA
public event Action<Actor> ActorAdded = _ => { };
public event Action<Actor> ActorRemoved = _ => { };
public bool ShouldTick { get { return Type != WorldType.Shellmap || Game.Settings.Game.ShowShellmap; } }
public bool Paused { get; internal set; }
public bool PredictedPaused { get; internal set; }
public bool PauseStateLocked { get; set; }
@@ -284,7 +285,7 @@ namespace OpenRA
public void Tick()
{
if (!Paused && (Type != WorldType.Shellmap || Game.Settings.Game.ShowShellmap))
if (!Paused)
{
WorldTick++;