Problem
Each frame, the pressure Jacobi solver starts from stale/garbage pressure. With pressureIterations=1 (default), it barely converges. The divergence changes slowly between frames, so the previous converged pressure is a good initial guess.
Proposed change
Remove the explicit pressure-FBO clear before the Jacobi solve loop. Keep the previous frame's pressure as the starting point — warm-starting means even 1 iteration produces a much better result.
Acceptance criteria
Files likely touched: src/core/simulation.ts
Problem
Each frame, the pressure Jacobi solver starts from stale/garbage pressure. With
pressureIterations=1(default), it barely converges. The divergence changes slowly between frames, so the previous converged pressure is a good initial guess.Proposed change
Remove the explicit pressure-FBO clear before the Jacobi solve loop. Keep the previous frame's pressure as the starting point — warm-starting means even 1 iteration produces a much better result.
Acceptance criteria
pressureIterations=1Files likely touched:
src/core/simulation.ts