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.
This commit is contained in:
@@ -53,6 +53,8 @@ typedef bool (*MEM_CacheLimiter_ItemDestroyable_Func) (void*);
|
||||
#ifndef __MEM_CACHELIMITER_H__
|
||||
void MEM_CacheLimiter_set_maximum(size_t m);
|
||||
size_t MEM_CacheLimiter_get_maximum(void);
|
||||
void MEM_CacheLimiter_set_disabled(bool disabled);
|
||||
bool MEM_CacheLimiter_is_disabled(void);
|
||||
#endif /* __MEM_CACHELIMITER_H__ */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user