mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
feat: expose draw total framecount
This commit is contained in:
parent
c04747375f
commit
1423fff516
1 changed files with 7 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue