Skip to content
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

Improved monitors units and colors. #12343

Merged
merged 1 commit into from
Oct 23, 2017

Conversation

djrm
Copy link
Contributor

@djrm djrm commented Oct 23, 2017

Friendlier names for monitors data (especially for memory units), also normalized the colors of the monitors.

screenshot from 2017-10-23 01-52-50

@ghost ghost added this to the 3.0 milestone Oct 23, 2017
switch (Performance::MonitorType((int)perf_items[i]->get_metadata(1))) {
case Performance::MONITOR_TYPE_MEMORY: {
// for the time being, going above GBs is a bad sign.
String unit = "B";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be appended afterward?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i think that would make it better.

v /= 1024.0;
}
tt += " bytes";
vs = rtos(v) + " " + unit;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it should limit decimal places.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not sure about that one, since that might also be applied to time measurements for them to look consistent, and currently this does not handle time units since the only ones are from the process and fixed time which are very tiny numbers, im not sure if i should put ms for the and truncate them.

@ghost ghost mentioned this pull request Oct 23, 2017
@ghost ghost added the usability label Oct 23, 2017
@akien-mga akien-mga merged commit 7c18881 into godotengine:master Oct 23, 2017
@djrm djrm deleted the pr_improve_monitors branch November 17, 2017 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants