diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-07-24 21:44:22 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-07-24 21:44:22 +0400 |
commit | a22de3f73c28b86f481376d52fbcfd7bb8ee25f2 (patch) | |
tree | c209505a899446aa72debf73dbb3f14965beb5dc /source/blender/blenkernel/BKE_effect.h | |
parent | 4ab7c6ae1a6d9867d30d5eb960aece38bb0233f7 (diff) |
Effector calculations are now thread safe.
* where_is_object_time was called for every effector evaluation only to determine the object velocity in some rare cases.
* Calculating the effector velocity is now done in the effector precalculation stage.
* Removing this makes the code thread safe and also should give some nice performance boosts when simulating a lot of points.
* Thanks to MiikaH for noticing this problem.
Diffstat (limited to 'source/blender/blenkernel/BKE_effect.h')
-rw-r--r-- | source/blender/blenkernel/BKE_effect.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_effect.h b/source/blender/blenkernel/BKE_effect.h index 97ac711651b..12f9383cefb 100644 --- a/source/blender/blenkernel/BKE_effect.h +++ b/source/blender/blenkernel/BKE_effect.h @@ -105,6 +105,7 @@ typedef struct EffectorCache { /* precalculated for guides */ struct GuideEffectorData *guide_data; float guide_loc[4], guide_dir[3], guide_radius; + float velocity[3]; float frame; int flag; |