news.volyx.in

Liquid Layers (grantkot.com)

525 points by nmstoker · 780 days ago · 52 comments on HN

Article summary

The article appears to be about a liquid simulation toy that allows users to interact with different colored liquids of varying densities. The simulation can be run on a CPU and has been optimized for performance. Users can adjust settings and interact with the simulation in various ways, including using a repulsion forcefield and adjusting the accelerometer and gyro on mobile devices. The simulation has been updated to use Wasm SIMD for improved performance.

Main themes

  • Liquid Simulation
  • CPU vs GPU Performance
  • WebAssembly
  • Physics Engine
  • Mobile Optimization
  • User Interaction

What commenters say

  • The simulation's performance is impressive, especially considering it runs on a single core on a phone.
  • Using a GPU for particle-based simulations may not be the best approach due to the complexity of collision detection and the potential for reduced parallelism.
  • The simulation's compressibility is a problem, and using a grid-based approach or adding pressure projection iterations could help improve accuracy.
  • The choice between CPU and GPU for simulations depends on the specific use case and the trade-offs between performance, complexity, and compatibility.
  • WebAssembly allows for easy deployment of simulations to a wide audience, but may have limitations and compatibility issues.
  • The simulation's 2D nature is a limitation, and a 3D version would be more impressive, but also more challenging to visualize and optimize.
  • The use of accelerometer and gyro on mobile devices adds a new level of interaction and fun to the simulation.
  • The simulation's accuracy and realism are compromised by the need for performance and compatibility, and further improvements are needed to achieve a more realistic experience.