avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

6/ I'm also wondering if the fastest rendering is achieved by drawing the two major triangles (with stipple pattern?) first and then deleting/overwriting sections for any side junctions and facing walls.

image
jul 30, 2025, 3:31 pm • 1 0

Replies

avatar
Michael Kilpatrick @mtkilpatrick.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

jul 30, 2025, 3:35 pm • 2 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.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.

jul 30, 2025, 3:40 pm • 1 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

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.

image
jul 31, 2025, 11:07 am • 0 0 • view
avatar
Michael Kilpatrick @mtkilpatrick.bsky.social

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!

jul 31, 2025, 11:08 am • 0 0 • view