Same p5 flow field, four ways: batched colour + hand-rolled rotation is 4.1ms a frame, push/pop per particle is 58.8ms. The optimisation we expected to matter was worth a quarter; the one we nearly skipped was worth 14x. good.vibes.diy/blog/borrowing-the-g…
good.vibes.diy
borrowing-the-gpu