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

[WIP] Track redrew with some color code #696

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howard0su
Copy link
Contributor

this is similar to Android debug option to track redraw times. It colors UI elements to identify the amount of overdraw as follows:

True color: No overdraw
Blue: Overdrawn 1 time
Green: Overdrawn 2 times
Red: Overdrawn 3 or more times

@@ -665,8 +665,42 @@ void PWR_Sleep() {
void LCD_ForceUpdate() {
if (changed) {
changed = false;
#ifdef BUILDTYPE_DEV
for (int x = 0; x < LCD_WIDTH; x++)
Copy link
Contributor

Choose a reason for hiding this comment

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

This probably needs to be configurable rather than always on with dev builds

@howard0su
Copy link
Contributor Author

howard0su commented Feb 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants