From afa4b855caa874d32d0cd0e02524846da58628c1 Mon Sep 17 00:00:00 2001 From: Janne Karhu Date: Mon, 27 Sep 2010 09:58:37 +0000 Subject: Fixed: Showing pointcached frames in the timeline was terribly slow when using disk cache. * The existence of cached frames was checked each frame causing hundreds of disk operations per frame update. * Pointcache now keeps an updated array of the cached frames for fast "frame exists in cache" queries. * This fix also speeds up some other pointcache operations nicely. --- source/blender/makesdna/DNA_object_force.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/makesdna/DNA_object_force.h') diff --git a/source/blender/makesdna/DNA_object_force.h b/source/blender/makesdna/DNA_object_force.h index 63a6b8fbe4a..d07db66cb0f 100644 --- a/source/blender/makesdna/DNA_object_force.h +++ b/source/blender/makesdna/DNA_object_force.h @@ -167,6 +167,8 @@ typedef struct PointCache { char prev_name[64]; char info[64]; char path[240]; /* file path */ + char *cached_frames; /* array of length endframe-startframe+1 with flags to indicate cached frames */ + /* can be later used for other per frame flags too if needed */ struct ListBase mem_cache; struct PTCacheEdit *edit; -- cgit v1.2.3