summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authoryahkr <62478788+yahkr@users.noreply.github.com>2024-11-11 08:33:47 -0500
committeryahkr <62478788+yahkr@users.noreply.github.com>2024-11-11 08:33:47 -0500
commit9625fdc1d747c03c8e642f73c9fff02aa7e9bb09 (patch)
tree7c85c232eeca6eac94816e1673035755f41458bb /editor
parent0f5f3bc9546b46b2029fc8896dc859697f1eab97 (diff)
downloadredot-engine-9625fdc1d747c03c8e642f73c9fff02aa7e9bb09.tar.gz
Fix float value used for MONITOR_TYPE_QUANTITY
Diffstat (limited to 'editor')
-rw-r--r--editor/debugger/editor_performance_profiler.cpp3
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);
}