Use Turbowarp ( If you don't, you will find it even can't run the example at 30fps, it is TOO L-A-G-!!! ): https://turbowarp.org/779447814?fps=60&offscreen&size=640x360&hqpen&stuck It doesn't really look like water. However, its time complexity -- O((20+logn)n) per tick , a lot faster than O(n^2). The example only has 1000 "waters", maybe the constants are huge, it can't run at 120fps on my computer :( Please tell me if you have a better algorithm to solve this problem, thanks. (I thought about chunking algorithm, but that's hard to achieve on scratch, could you please tell me how to achieve it?) #particle #system #water #liquid #physics #algorithm #analog #simulation