Skip to content

Commit d09d82d

Browse files
committed
Merge pull request #99068 from yahkr/fix_monitor_display
[Editor] Fix float value used for integer performance monitors
2 parents 9b5c7e9 + 9625fdc commit d09d82d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/debugger/editor_performance_profiler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ void EditorPerformanceProfiler::Monitor::reset() {
8181

8282
String EditorPerformanceProfiler::_create_label(float p_value, Performance::MonitorType p_type) {
8383
switch (p_type) {
84+
case Performance::MONITOR_TYPE_QUANTITY: {
85+
return TS->format_number(itos(p_value));
86+
}
8487
case Performance::MONITOR_TYPE_MEMORY: {
8588
return String::humanize_size(p_value);
8689
}

0 commit comments

Comments
 (0)