Fix float value used for MONITOR_TYPE_QUANTITY

This commit is contained in:
yahkr 2024-11-11 08:33:47 -05:00
parent 0f5f3bc954
commit 9625fdc1d7

View file

@ -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);
}