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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user