Skip to content

Commit

Permalink
Merge pull request #99068 from yahkr/fix_monitor_display
Browse files Browse the repository at this point in the history
[Editor] Fix float value used for integer performance monitors
  • Loading branch information
Repiteo committed Nov 25, 2024
2 parents 9b5c7e9 + 9625fdc commit d09d82d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/debugger/editor_performance_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ void EditorPerformanceProfiler::Monitor::reset() {

String EditorPerformanceProfiler::_create_label(float p_value, Performance::MonitorType p_type) {
switch (p_type) {
case Performance::MONITOR_TYPE_QUANTITY: {
return TS->format_number(itos(p_value));
}
case Performance::MONITOR_TYPE_MEMORY: {
return String::humanize_size(p_value);
}
Expand Down

0 comments on commit d09d82d

Please sign in to comment.