blender/intern/memutil
Sergey Sharybin 84d350f4b5 Camera tracking integration
===========================

Attempt to switch moviecache to use CacheLimiter.

Some changes in limiter were necessary:
- Limiter counted mapped memory twice when was chacking
  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.

Sequence cache wasn't switched to use moviecache but
now it's really easy to do. When i'll be sure new caching
scheme works fine.

Now clip editor uses as much memory for cache as it's set in
User Preferences (Preferences -> System -> Sequencer -> Memory
Cache Limit) which si 128Mb by default. Please do not complain
about few cached frames out-of-box and just increase limit
there. Caching fixed amount of frames wasn't so nice indeed.
2011-07-27 12:53:39 +00:00
..
intern Camera tracking integration 2011-07-27 12:53:39 +00:00
CMakeLists.txt cmake maintenance 2011-05-31 01:15:44 +00:00
MEM_Allocator.h includes for building with gcc 4.6 on fedora. 2011-03-30 16:14:54 +00:00
MEM_CacheLimiter.h Camera tracking integration 2011-07-27 12:53:39 +00:00
MEM_CacheLimiterC-Api.h Camera tracking integration 2011-07-27 12:53:39 +00:00
MEM_NonCopyable.h doxygen: intern/memutil tagged 2011-02-25 11:47:18 +00:00
MEM_RefCounted.h doxygen: intern/memutil tagged 2011-02-25 11:47:18 +00:00
MEM_RefCountedC-Api.h doxygen: intern/memutil tagged 2011-02-25 11:47:18 +00:00
MEM_RefCountPtr.h doxygen: intern/memutil tagged 2011-02-25 11:47:18 +00:00
MEM_SmartPtr.h doxygen: intern/memutil tagged 2011-02-25 11:47:18 +00:00
SConscript rename most scons build targets to match cmake 2010-08-25 04:30:47 +00:00