mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-21 02:41:34 +00:00
Allow up to 128 MB of cached images.
This commit is contained in:
parent
c9159e2191
commit
fabf830132
@ -18,8 +18,8 @@ using namespace Images;
|
||||
namespace Images {
|
||||
namespace {
|
||||
|
||||
// After 64MB of unpacked images we try to clear some memory.
|
||||
constexpr auto kMemoryForCache = 64 * 1024 * 1024;
|
||||
// After 128 MB of unpacked images we try to clear some memory.
|
||||
constexpr auto kMemoryForCache = 128 * 1024 * 1024;
|
||||
|
||||
QMap<QString, Image*> LocalFileImages;
|
||||
QMap<QString, Image*> WebUrlImages;
|
||||
|
Loading…
Reference in New Issue
Block a user