7/ I remember posting a lot about the 2D stuff 5 years ago on Twitter and making a few online friends from the retro community, which was fun. @breakintoprogram.co.uk @6502nerd.bsky.social @kevedwardsretro.bsky.social
7/ I remember posting a lot about the 2D stuff 5 years ago on Twitter and making a few online friends from the retro community, which was fun. @breakintoprogram.co.uk @6502nerd.bsky.social @kevedwardsretro.bsky.social
8/ I've also just bought a Microbit V2 which uses a more powerful processor and Thumb 2,with some conditional execution - the optimisations in the SPI buffer delivery and Bresenham lines, etc, could he significant. Far fewer silly little conditional branches and faffing.
9/ Aha. Rendering trick: draw the two mirror image major triangles (solid border and stipple pattern) first, render the maze by deleting/overwriting segments were side-junctions appear. Next trick: render the triangles as several rectangular blocks, hard-coded. Really fast. No Bresenam nonsense.
10/ That's dead quick because the SSD1309 has 8 rows of 128 bytes, each byte being 8 vertical pixels. So that's 8 blocks of code with a defined length, dumped very quickly to the screen buffer. Woof!