optimize clearing lines by using pointers to define the row order

This commit is contained in:
2025-01-29 11:56:07 +01:00
parent 1a342d764c
commit d0ba27ee0f
5 changed files with 59 additions and 32 deletions

View File

@@ -74,8 +74,8 @@ void renderer_update(const RenderData* render_data) {
Row row = data->row[y];
for (uint8_t x = 0; x < COLUMNS; x++) {
if (row.columns[x].packed != 0) {
set_colour(renderer, row.columns[x]);
if (row[x].packed != 0) {
set_colour(renderer, row[x]);
success |= draw_block(renderer, x, y);
}
}