This commit is contained in:
max
2026-06-09 17:49:11 +02:00
parent 1489f278dc
commit 21a62fb46e
6 changed files with 401 additions and 192 deletions

View File

@@ -36,7 +36,8 @@ namespace FluidSim.Core
{
if (_pipeSystem == null || _boundarySystem == null) return;
int nSub = SubStepCount;
int nSub = _pipeSystem.GetRequiredSubSteps((float)_dt, 0.8f);
nSub = Math.Max(nSub, SubStepCount); // never go below fixed minimum
float dtSub = (float)(_dt / nSub);
for (int sub = 0; sub < nSub; sub++)