mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-25 09:59:18 +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;
|
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>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether statistics about UI draw time should be collected.
|
/// Gets or sets a value indicating whether statistics about UI draw time should be collected.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -283,6 +288,8 @@ namespace Dalamud.Interface
|
||||||
this.hasErrorWindow = true;
|
this.hasErrorWindow = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.FrameCount++;
|
||||||
|
|
||||||
if (DoStats)
|
if (DoStats)
|
||||||
{
|
{
|
||||||
this.stopwatch.Stop();
|
this.stopwatch.Stop();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue