Files
RobustToolbox/Robust.Client/Graphics/IClydeDebugStats.cs
2023-02-13 03:51:45 +11:00

49 lines
1.4 KiB
C#

namespace Robust.Client.Graphics
{
/// <summary>
/// Provides frame statistics about rendering.
/// </summary>
internal interface IClydeDebugStats
{
/// <summary>
/// The amount of draw calls sent to OpenGL last frame.
/// </summary>
int LastGLDrawCalls { get; }
/// <summary>
/// The amount of Clyde draw calls done last frame.
/// </summary>
/// <remarks>
/// This is stuff like <see cref="DrawingHandleScreen.DrawTexture"/>.
/// </remarks>
int LastClydeDrawCalls { get; }
/// <summary>
/// The amount of batches made.
/// </summary>
int LastBatches { get; }
(int vertices, int indices) LargestBatchSize { get; }
/// <summary>
/// The amount of lights that were rendered last frame.
/// </summary>
int TotalLights { get; }
/// <summary>
/// Number of shadow-casting lights that were rendered last frame.
/// </summary>
int ShadowLights { get; }
/// <summary>
/// Number of occluders that were rendered last frame.
/// </summary>
int Occluders { get; }
/// <summary>
/// Number of entities that were rendered last frame.
/// </summary>
int Entities { get; }
}
}