Commit Description:
Streamline performance of debug code....
Commit Description:
Streamline performance of debug code. Use raw floats for draw times and avoid resorting so many times. Seems to reduce time by about a third. Still ends up slow after leaving the game running for a few minutes.
File last commit:
Show/Diff file:
Action:
FNA/src/Content/ContentReaders/BooleanReader.cs
33 lines | 587 B | text/x-csharp | CSharpLexer
#region License
/* FNA - XNA4 Reimplementation for Desktop Platforms
* Copyright 2009-2020 Ethan Lee and the MonoGame Team
*
* Released under the Microsoft Public License.
* See LICENSE for details.
*/
#endregion
namespace Microsoft.Xna.Framework.Content
{
internal class BooleanReader : ContentTypeReader<bool>
{
#region Internal Constructor
internal BooleanReader()
{
}
#endregion
#region Protected Read Method
protected internal override bool Read(
ContentReader input,
bool existingInstance
) {
return input.ReadBoolean();
}
#endregion
}
}