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