Commit Description:
Add timers for Simulation and various engines...
Commit Description:
Add timers for Simulation and various engines Starting to add additional timers for different stages of the process of updating in order to get more insight into what is slowing it down. The update takes 9ms, which is much longer than it used to. Engine-specific timers are coming later.
File last commit:
Show/Diff file:
Action:
SpriteFontPlus/deps/BMFontToSpriteFont/Cyotek.Drawing.Bitmap/Page.cs
69 lines | 1.6 KiB | text/x-csharp | CSharpLexer
/* AngelCode bitmap font parsing using C#
* http://www.cyotek.com/blog/angelcode-bitmap-font-parsing-using-csharp
*
* Copyright © 2012-2015 Cyotek Ltd.
*
* Licensed under the MIT License. See license.txt for the full text.
*/
using System.IO;
namespace Cyotek.Drawing.BitmapFont
{
/// <summary>
/// Represents a texture page.
/// </summary>
internal struct Page
{
#region Constructors
/// <summary>
/// Creates a texture page using the specified ID and source file name.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="fileName">Filename of the texture image.</param>
public Page(int id, string fileName)
: this()
{
FileName = fileName;
Id = id;
}
#endregion
#region Properties
/// <summary>
/// Gets or sets the filename of the source texture image.
/// </summary>
/// <value>
/// The name of the file containing the source texture image.
/// </value>
public string FileName { get; set; }
/// <summary>
/// Gets or sets the page identifier.
/// </summary>
/// <value>
/// The page identifier.
/// </value>
public int Id { get; set; }
#endregion
#region Methods
/// <summary>
/// Returns the fully qualified type name of this instance.
/// </summary>
/// <returns>
/// A <see cref="T:System.String" /> containing a fully qualified type name.
/// </returns>
/// <seealso cref="M:System.ValueType.ToString()" />
public override string ToString()
{
return string.Format("{0} ({1})", Id, Path.GetFileName(FileName));
}
#endregion
}
}