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

Explore dithering for black and white only fast display mode #1

Open
Eeems opened this issue Jan 12, 2024 · 4 comments
Open

Explore dithering for black and white only fast display mode #1

Eeems opened this issue Jan 12, 2024 · 4 comments

Comments

@Eeems
Copy link
Contributor

Eeems commented Jan 12, 2024

https://github.com/rmkit-dev/rmkit/blob/master/src/rmkit/fb/dither.h
https://github.com/rmkit-dev/rmkit/blob/master/src/rmkit/color.h

DITHER(x, y, actual_color)
@Eeems
Copy link
Contributor Author

Eeems commented Jan 12, 2024

for (int i = 0; i < height; i++) {
  for (int j = 0; j < width; j++) { 
    image[i][j] = DITHER(i,j,image[i][j]);
  }
}

@Eeems
Copy link
Contributor Author

Eeems commented Jan 12, 2024

@Eeems
Copy link
Contributor Author

Eeems commented Jan 12, 2024

@Eeems
Copy link
Contributor Author

Eeems commented Jan 12, 2024

QImage::convertToFormat supports dithering when converting to QImage::Format_Mono. Upon testing it, the rM1 just can't keep up with running the emulator and converting the screen. The rM2 may be able to keep up with its two cores, but it's not really a great option. This already runs the rM1 at an almost constant 100% CPU utilization as-is. So something with extremely low overhead is needed.

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

No branches or pull requests

1 participant