Colin McMillen on Nostr: The X and Y scaling both require one 8bit x 8bit to 16bit multiplication, but I ...
The X and Y scaling both require one 8bit x 8bit to 16bit multiplication, but I avoided the need for a division by generating tables of "256-entage" instead of percentage and it's fast enough : dividing a 16bit int by 256 means simply keeping the high byte.