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

@@ -37,14 +37,6 @@ namespace OpenRA.Mods.Common.Widgets
Action onComplete;
readonly World world;
[ObjectCreator.UseCtor]
public VqaPlayerWidget(World world)
{
this.world = world;
}
public void Load(string filename)
{
if (filename == cachedVideo)
@@ -201,7 +193,7 @@ namespace OpenRA.Mods.Common.Widgets
Game.Sound.StopVideo();
video.Reset();
videoSprite.Sheet.GetTexture().SetData(video.FrameData);
world.AddFrameEndTask(_ => onComplete());
Game.RunAfterTick(onComplete);
}
public void CloseVideo()