Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2009-08-07 02:28:55 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2009-08-07 02:28:55 +0400
commit85c343c04980574629cdd5fda5ee4bae4f26e6a5 (patch)
tree7b80cc8726de3d6e77b79db048cd932c57889fa6
parentcb7ebe58795391bd3a2fb4587f395d7a883c32b6 (diff)
Smoke: another 10-20% speed gain due to CG (conjugate gradient) improvements
-rw-r--r--intern/smoke/intern/FLUID_3D.cpp4
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);