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

Screen is set on every USB command #108

Open
Maxfojtik opened this issue Jun 13, 2024 · 0 comments
Open

Screen is set on every USB command #108

Maxfojtik opened this issue Jun 13, 2024 · 0 comments

Comments

@Maxfojtik
Copy link

Maxfojtik commented Jun 13, 2024

At this line you set the entire screen every time a command is parsed:

fill_grid_pixels(&state, &mut matrix);

This is very inefficient when streaming data over the USB connection and makes framerates terrible.

The display is also getting set 32 times a second at this line, even if the animation is already finished.

fill_grid_pixels(&state, &mut matrix);

@Maxfojtik Maxfojtik changed the title Screen set on every command., Screen is set on every USB command Jun 13, 2024
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