measure sprite font performance

This commit is contained in:
Matthias Mailänder
2014-11-01 16:13:41 +01:00
parent 2d88a77849
commit cf43581bac
2 changed files with 9 additions and 5 deletions

View File

@@ -60,7 +60,8 @@ namespace OpenRA.Graphics
public void InitializeFonts(Manifest m)
{
Fonts = m.Fonts.ToDictionary(x => x.Key, x => new SpriteFont(Platform.ResolvePath(x.Value.First), x.Value.Second));
using (new Support.PerfTimer("SpriteFonts"))
Fonts = m.Fonts.ToDictionary(x => x.Key, x => new SpriteFont(Platform.ResolvePath(x.Value.First), x.Value.Second));
}
internal IGraphicsDevice Device { get { return device; } }