-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitors tab incorrectly reports integers as floats #99577
Comments
Hi! I'd be interested in trying to fix this issue. I'm not sure if you've already started working on it, but if you haven't and you don't want to, I'd like to take a crack at it. |
I don't plan on working on this, so go ahead! |
I think the simplest way to fix this issue would be to just check if the number ends with a .0 and if so remove it. I just added a few lines to EditorPerformanceProfiler::_create_label which do this:
This fixes the issue of integers as floats in the Monitor: By the way, I don't see how it's a flaw that get_monitor() returns a double. In 4.3 it returned a double but we didn't see the trailing ".0". Anyway, I'll probably create a pull request for this in a bit. |
This was already reported in: |
Closing as a duplicate of #99000 |
Tested versions
System information
M2 Macbook
Issue description
Values that are always integers are being reported as floats in the editor monitor.
This is technically a regression from #47502
However, #47502 just exposed an underlying flaw in the monitor system:
get_monitor()
always returns a doublegodot/main/performance.cpp
Line 159 in 0c45ace
Steps to reproduce
Just look in the monitors tab
Minimal reproduction project (MRP)
N/A - this is native to the Godot editor itself
The text was updated successfully, but these errors were encountered: