From 40e58c85092945ca71e974ce4062d90e44f7fb66 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 26 Mar 2010 10:33:53 +0000 Subject: 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) --- source/blender/makesdna/DNA_action_types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/DNA_action_types.h') diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h index 937dd3ee324..18b3c1095cc 100644 --- a/source/blender/makesdna/DNA_action_types.h +++ b/source/blender/makesdna/DNA_action_types.h @@ -40,6 +40,7 @@ struct SpaceLink; struct Object; struct Group; +struct GHash; /* ************************************************ */ /* Visualisation */ @@ -326,6 +327,7 @@ typedef enum eRotationModes { */ typedef struct bPose { ListBase chanbase; /* list of pose channels, PoseBones in RNA */ + struct GHash *chanhash; /* ghash for quicker string lookups */ short flag, proxy_layer; /* proxy layer: copy from armature, gets synced */ -- cgit v1.2.3