Blender Git Loki

Git Commits -> Revision 5c70c29

Revision 5c70c29 by Sergey Sharybin (master)
July 3, 2012, 10:56 (GMT)
Tomato: improved cache management for movie clips

Replace pseudo-LRU approach of determining which buffer
to remove when running out of space allowed for cache
with approach which would remove the frame which is most
far away from newly added frame.

This is still a bit tricky because it's impossible to
distinguish which frame to delete in situation of:

CCCC...CC
^

it's either user wants to extend left segment of cached
frames and buffers from right segment should be removed
or he wants to join this two segments and in that case
buffers from right segment should be removed.

Would need a bit more investigation which situation
is more common in general usecase.

Commit Details:

Full Hash: 5c70c29b9c5b8d9954c01a9ed4ba79387a9cc46b
SVN Revision: 48526
Parent Commit: 5593100
Lines Changed: +198, -42

8 Modified Paths:

/intern/memutil/intern/MEM_CacheLimiterC-Api.cpp (+6, -0) (Diff)
/intern/memutil/MEM_CacheLimiter.h (+67, -15) (Diff)
/intern/memutil/MEM_CacheLimiterC-Api.h (+6, -0) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+39, -2) (Diff)
/source/blender/blenkernel/intern/seqcache.c (+2, -4) (Diff)
/source/blender/imbuf/IMB_moviecache.h (+13, -5) (Diff)
/source/blender/imbuf/intern/colormanagement.c (+4, -3) (Diff)
/source/blender/imbuf/intern/moviecache.c (+61, -13) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021