diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-07 02:28:55 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-07 02:28:55 +0400 |
commit | 85c343c04980574629cdd5fda5ee4bae4f26e6a5 (patch) | |
tree | 7b80cc8726de3d6e77b79db048cd932c57889fa6 /intern/smoke | |
parent | cb7ebe58795391bd3a2fb4587f395d7a883c32b6 (diff) |
Smoke: another 10-20% speed gain due to CG (conjugate gradient) improvements
Diffstat (limited to 'intern/smoke')
-rw-r--r-- | intern/smoke/intern/FLUID_3D.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/smoke/intern/FLUID_3D.cpp b/intern/smoke/intern/FLUID_3D.cpp index 198d08ee369..76d94e1b4b7 100644 --- a/intern/smoke/intern/FLUID_3D.cpp +++ b/intern/smoke/intern/FLUID_3D.cpp @@ -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); |