diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 11:47:38 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-03-21 11:47:38 +0400 |
commit | 1769319ce26814f821744d16f050d49fc33eb6ff (patch) | |
tree | a1ee16152c9d389ff5885e2adf71042f7f36ed8a /source/blender/editors/space_clip/clip_editor.c | |
parent | 3725089b6ba83ab1a093d155fd72e8f4bfd2e872 (diff) |
Tweaks to movie clip prefetching after discussion with Sebastian
Don't use sequencer's Frames Prefetch option and rather fill the
whole cache with frames.
Since movie clip is not "classical" prefetcher (it doesn't do
anything while playing back) and main purpose is to speed up
reading for further tracking and so, such a change seems logical.
Diffstat (limited to 'source/blender/editors/space_clip/clip_editor.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_editor.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/space_clip/clip_editor.c b/source/blender/editors/space_clip/clip_editor.c index 1ee8d21624e..80e8f0d741e 100644 --- a/source/blender/editors/space_clip/clip_editor.c +++ b/source/blender/editors/space_clip/clip_editor.c @@ -1040,7 +1040,7 @@ static int prefetch_get_final_frame(const bContext *C) int end_frame; /* check whether all the frames from prefetch range are cached */ - end_frame = min_ii(sc->user.framenr + U.prefetchframes - 1, EFRA); + end_frame = EFRA; if (clip->len) end_frame = min_ii(end_frame, clip->len); @@ -1059,10 +1059,6 @@ static bool prefetch_check_early_out(const bContext *C) if (clip->prefetch_ok) return true; - /* prefetch is disabled in user preferences */ - if (U.prefetchframes == 0) - return true; - clip_len = BKE_movieclip_get_duration(clip); /* check whether all the frames from prefetch range are cached */ |