Optimization for pose channel name lookups using a hash, makes

playback in one particular scene with 3 characters go from 10 to 13 fps.
(commit 27728 by Brecht from render25 branch)
This commit is contained in:
2010-03-26 10:33:53 +00:00
parent 6af1f96876
commit 40e58c8509
8 changed files with 50 additions and 3 deletions

View File

@@ -2459,7 +2459,10 @@ void object_tfm_restore(Object *ob, void *obtfm_pt)
void object_handle_update(Scene *scene, Object *ob)
{
if(ob->recalc & OB_RECALC) {
/* speed optimization for animation lookups */
if(ob->pose)
make_pose_channels_hash(ob->pose);
/* XXX new animsys warning: depsgraph tag OB_RECALC_DATA should not skip drivers,
which is only in where_is_object now */
if(ob->recalc & OB_RECALC) {