Blender Git Commit Log

Git Commits -> Revision 3cbadbf

Revision 3cbadbf by Sergey Sharybin (master)
October 24, 2011, 17:12 (GMT)
MovieCache implementation

Implementation of cache for general movie-related areas
such as sequencer and clip editor (in the future)

Some changes in limiter were necessary:
- Limiter counted mapped memory twice when was checking how many memory is used.
- It was using "global" memory usage not memory usage by cached elements.
It will cause big problems when there's large mesh or plenty of undo steps are
in memory nothing would be cached in sequencer.
- To solve this problem introduced "callback" to measure cached element size.
It could be not very accurate in general, but it works well for image buffers.
And if this callback isn't set old-school memory usage check would be used.
- The whole cache used to get freed when memory limit exceeded, now it'll drop only
as much elements as necessary to reduce memory usage.

Seqcache is switched to use this new cache code.

Commit Details:

Full Hash: 3cbadbf895f4775290d626bed00e97f997b8a962
SVN Revision: 41257
Parent Commit: 8afc509
Lines Changed: +59, -8

2 Modified Paths:

/source/blender/imbuf/CMakeLists.txt (+5, -6) (Diff)
/source/blender/imbuf/intern/allocimbuf.c (+54, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021