Blender Git Commit Log
Git Commits -> Revision 76ee978
Revision 76ee978 by Sergey Sharybin (master) July 10, 2012, 14:43 (GMT) |
Improved cache management for movie clips from tomato branch 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. Additional changes: - Cleanup some memutil files (which are familiar to cache limiter) - Add option to make moviecache verbose. If DEBUG_MESSAGES is defined in moviecache.c detailed logs would be printed to the console. - Movie caches are now named which helps reading debug messages. |
Commit Details:
Full Hash: 76ee9783a13ed9e1eb0d4415239ffebdab0a10b7
SVN Revision: 48808
Parent Commit: a41dc71
Lines Changed: +374, -146
7 Modified Paths:
/intern/memutil/intern/MEM_CacheLimiterC-Api.cpp (+48, -43) (Diff)
/intern/memutil/MEM_CacheLimiter.h (+114, -41) (Diff)
/intern/memutil/MEM_CacheLimiterC-Api.h (+51, -46) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+42, -2) (Diff)
/source/blender/blenkernel/intern/seqcache.c (+2, -4) (Diff)
/source/blender/imbuf/IMB_moviecache.h (+10, -1) (Diff)
/source/blender/imbuf/intern/moviecache.c (+107, -9) (Diff)
/intern/memutil/MEM_CacheLimiter.h (+114, -41) (Diff)
/intern/memutil/MEM_CacheLimiterC-Api.h (+51, -46) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+42, -2) (Diff)
/source/blender/blenkernel/intern/seqcache.c (+2, -4) (Diff)
/source/blender/imbuf/IMB_moviecache.h (+10, -1) (Diff)
/source/blender/imbuf/intern/moviecache.c (+107, -9) (Diff)