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/makesdna/DNA_object_force.h | |
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/makesdna/DNA_object_force.h')
-rw-r--r-- | source/blender/makesdna/DNA_object_force.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |