Back to Browse

I Made Real-Time Sand Simulation in SQL

37.6K views
Apr 11, 2026
10:12

Ever wondered if real-time physics simulations in SQL were possible? Imagine doing everything: the physics, the simulation loop, the rendering state and even a secret mechanic, all inside a simple database. Well, look no further and enjoy my suffering as I try to implement this completely useless but kinda satisfying project. Link to the repo: https://github.com/icitry/SQLSandSim Video chapters: 0:00 Intro 1:03 Why SQL? 2:11 The first big improvement 2:59 Sand vs. water sims 4:19 Gravity 5:15 Lateral micro-steps 6:53 Client / Server 7:51 Time-travel 9:21 Finishing up

Download

1 formats

Video Formats

360pmp421.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

I Made Real-Time Sand Simulation in SQL | NatokHD