feat: expose draw total framecount

This commit is contained in:
Raymond 2021-09-07 10:00:53 -04:00
parent c04747375f
commit 1423fff516

View file

@ -120,6 +120,11 @@ namespace Dalamud.Interface
set => Service<InterfaceManager>.Get().OverrideGameCursor = value;
}
/// <summary>
/// Gets the count of Draw calls made since plugin creation.
/// </summary>
public ulong FrameCount { get; private set; } = 0;
/// <summary>
/// Gets or sets a value indicating whether statistics about UI draw time should be collected.
/// </summary>
@ -283,6 +288,8 @@ namespace Dalamud.Interface
this.hasErrorWindow = true;
}
this.FrameCount++;
if (DoStats)
{
this.stopwatch.Stop();