Fix precision print in profile gpu dump command

This commit is contained in:
Wojtek Figat
2026-01-20 13:23:11 +01:00
parent 85ed0ecb06
commit 0c5cb59875

View File

@@ -408,7 +408,7 @@ void GraphicsDumping::Print()
// Timing and percentage of the frame
const float percentage = item.Time * 100.0f / draw.Time;
sb.AppendFormat(TEXT("{:>4}% {:>5}ms "), Utilities::RoundTo1DecimalPlace(percentage), Utilities::RoundTo2DecimalPlaces(item.Time));
sb.AppendFormat(TEXT("{:>5.2f}% {:>5.2f}ms "), Utilities::RoundTo1DecimalPlace(percentage), Utilities::RoundTo2DecimalPlaces(item.Time));
// Indent based on depth
for (int32 depth = 1; depth < item.Depth; depth++)