Blender Git Commit Log

Git Commits -> Revision 0a2a006

Revision 0a2a006 by Alexander Gavrilov (master)
October 7, 2016, 18:47 (GMT)
Collision: skip expensive BVH update if the collider doesn't move.

Since the collision modifier cannot be disabled, it causes a constant
hit on the viewport animation playback FPS. Most of this overhead can
be automatically removed in the case when the collider is static.

The updates are only skipped when the collider was stationary during
the preceding update as well, so the state is stored in a field.
Knowing that the collider is static can also be used to disable similar
BVH updates for substeps in the actual cloth simulation code.

Differential Revision: https://developer.blender.org/D2277

Commit Details:

Full Hash: 0a2a006775543292786e8642b20a594771fdc81c
Parent Commit: 2dccf5a
Lines Changed: +26, -4

4 Modified Paths:

/source/blender/blenkernel/intern/collision.c (+9, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+13, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021