Improve displaying tris/vert count in GPU profiler if value is large

This commit is contained in:
Wojciech Figat
2022-07-27 16:24:49 +02:00
parent 4197e7b21e
commit bfec5d6a8d

View File

@@ -91,16 +91,19 @@ namespace FlaxEditor.Windows.Profiler
{
Title = "Draw Calls",
TitleBackgroundColor = headerColor,
FormatValue = FormatCountLong,
},
new ColumnDefinition
{
Title = "Triangles",
TitleBackgroundColor = headerColor,
FormatValue = FormatCountLong,
},
new ColumnDefinition
{
Title = "Vertices",
TitleBackgroundColor = headerColor,
FormatValue = FormatCountLong,
},
},
Parent = layout,
@@ -116,6 +119,11 @@ namespace FlaxEditor.Windows.Profiler
};
}
private static string FormatCountLong(object x)
{
return ((long)x).ToString("###,###,###");
}
/// <inheritdoc />
public override void Clear()
{