8 ms·
Storing values at the edges of cells makes the math simpler, but unfortunately makes a GPU implementation harder. In this setup one edge update affects two cel
by pornel 2y ago
Storing values at the edges of cells makes the math simpler, but unfortunately makes a GPU implementation harder.
In this setup one edge update affects two cells, so the cells are no longer trivially independent. It's still possible to update cells in parallel, but it requires splitting the update into two checkerboard-like passes.
- lisyarus 2y agoIt's true that it makes it more complicated on the GPU side in general, but specifically in this scenario everything works out just fine, mostly because all updates effectively ping-pong between flow & water height buffers, and you never change both in the same kernel.