diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-27 13:58:37 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-27 13:58:37 +0400 |
commit | afa4b855caa874d32d0cd0e02524846da58628c1 (patch) | |
tree | e9f7da1bb430aa309ddf32672802d559e1c3e578 /source/blender/blenloader/intern | |
parent | 03c65a0c01cd463f87bc9ccafebb3e10a7db5527 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index fc700c8db8b..bccbc451427 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2937,6 +2937,7 @@ static void direct_link_pointcache(FileData *fd, PointCache *cache) cache->simframe= 0; cache->edit= NULL; cache->free_edit= NULL; + cache->cached_frames= NULL; } static void direct_link_pointcache_list(FileData *fd, ListBase *ptcaches, PointCache **ocache) |