Bubble Universe Demo


Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 777
Posted: 02:34pm 21 Nov 2022      

Hi Volhout,
You could, but you would then only get 41 pixels at any one time. Currently it calculates 41x41 (i&j) in the for loops, which then progressively update 41 pixels at a time. I did look at saving all the points in an array, but the array used to much memory, because all variables use 64bits only, I also looked at saving 2 or 4 smaller integers in each array element by masking & shifting, but even then the array was too big, though that was before I reduced the number of pixels displayed, so may now be possible, but may not gain a huge amount, because of the slowness of the serial data transfer to the display.
Regards Kevin.