Bubble Universe Demo


Author Message
Bleep
Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 777
Posted: 06:26pm 21 Nov 2022      

Smarty Pants ;-)
Yes there will be a small number that get overwritten, but hopefully this is minimal, I certainly don't notice it.
However I definitely missed the fact that 'a' was being calculated in the wrong place and the fact that the colours could be pre-calculated. :-(
The reason I was doing it incrementally was to stop the fact that the whole pattern disappears and is then re-drawn, each iteration, I wanted it to look more fluid.
I've modified mine, to include the moved 'a' calculation and pre-calculated the colours, so it's improved to 480mS, still not as good as yours, but over a 50mS improvement on my previous. Thanks :-) Any other tips?
Regards, Kevin.
Edited 2022-11-22 04:30 by Bleep