Fix T37898: blenderplayer painfully slow in recent builds
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 22 Dec 2013 09:26:59 +0000 (15:26 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 22 Dec 2013 09:26:59 +0000 (15:26 +0600)
commitff9974ed69bf2b71a569191cc06ae909217ffd2c
treed127d2161a4e71edd6a29ae9ade7a34c10608a51
parent78698a2ecf9d17340ce337ecf73ce6e355299f89
Fix T37898: blenderplayer painfully slow in recent builds

Issue was caused by recent image cache rewrite and root of
the issue goes to the fact that blender player doesn't
initialize cache limiter and it uses 32meg of memory only.

This leads to infinite image loading/freeing.

For now disabled cache limiter in game engine, this brings
back old behavior.

In theory we might be smarter here, but better caching
policy is to be discussed.
intern/memutil/MEM_CacheLimiter.h
intern/memutil/MEM_CacheLimiterC-Api.h
intern/memutil/intern/MEM_CacheLimiterC-Api.cpp
source/gameengine/GamePlayer/ghost/CMakeLists.txt
source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
source/gameengine/GamePlayer/ghost/SConscript