From fabf83013235a85e3f6752431ab851ee178d8fdd Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 31 Oct 2018 10:37:16 +0400 Subject: [PATCH] Allow up to 128 MB of cached images. --- Telegram/SourceFiles/ui/image/image.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/image/image.cpp b/Telegram/SourceFiles/ui/image/image.cpp index cab8b86a6..b12204bd2 100644 --- a/Telegram/SourceFiles/ui/image/image.cpp +++ b/Telegram/SourceFiles/ui/image/image.cpp @@ -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 LocalFileImages; QMap WebUrlImages;