Smoke: another 10-20% speed gain due to CG (conjugate gradient) improvements
authorDaniel Genrich <daniel.genrich@gmx.net>
Thu, 6 Aug 2009 22:28:55 +0000 (22:28 +0000)
committerDaniel Genrich <daniel.genrich@gmx.net>
Thu, 6 Aug 2009 22:28:55 +0000 (22:28 +0000)
intern/smoke/intern/FLUID_3D.cpp

index 198d08ee369ed47d397ca9a1cd6bdca1758aef36..76d94e1b4b7f8b674ea10ff4338ca1d7b231147b 100644 (file)
@@ -407,7 +407,9 @@ void FLUID_3D::project()
                                                xright - xleft +
                                                yup - ydown +
                                                ztop - zbottom );
-                               _pressure[index] = 0.0f;
+
+                               // DG: commenting this helps CG to get a better start, 10-20% speed improvement
+                               // _pressure[index] = 0.0f;
                        }
        copyBorderAll(_pressure);