FrameworkComputer/inputmodule-rs

Screen is set on every USB command

Maxfojtik opened this issue · 0 comments

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);