Tilemaps under the hood

Here's a question that stomped us in the Playdate discord: Should tilemaps mark the entire screen as dirty when they move?

See my example below:

Enregistrement de l’écran 2022-10-07 à 09.11.10

(Updated: I couldn't reproduce the difference in performance between two differently sized tile maps in my experiments so I removed that part of the original post).


There seems to be an interesting optimisation at x = 0 too, noticeably faster than any other case.