diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-25 13:22:36 -0600 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-25 13:22:36 -0600 |
commit | d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ce (patch) | |
tree | bf9164ebb3510ee618423de5a6f783ff17fb0158 /editor | |
parent | 9b5c7e9efaae1f5ac9a92e9acd096ff5c89bdfa5 (diff) | |
parent | 9625fdc1d747c03c8e642f73c9fff02aa7e9bb09 (diff) | |
download | redot-engine-d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ce.tar.gz |
Merge pull request #99068 from yahkr/fix_monitor_display
[Editor] Fix float value used for integer performance monitors
Diffstat (limited to 'editor')
-rw-r--r-- | editor/debugger/editor_performance_profiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/debugger/editor_performance_profiler.cpp b/editor/debugger/editor_performance_profiler.cpp index 1ea9a66534..31c09c9b37 100644 --- a/editor/debugger/editor_performance_profiler.cpp +++ b/editor/debugger/editor_performance_profiler.cpp @@ -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); } |