Improve displaying tris/vert count in GPU profiler if value is large
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user