Increase media cache memory size to solve flicker issue

When displaying large numbers of GIFs, Telegram's Media Cache runs out of size and unloads items that are still being displayed.
This commit is contained in:
Av 2020-03-03 11:47:49 -08:00 committed by John Preston
parent 32169fa7bd
commit fdd841e5c4
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace {
constexpr auto kMemoryForCache = 32 * 1024 * 1024;
// Updated Mar 3, 2020: Increase the size of the memory cache for media, to prevent items still being displayed from being unloaded.
constexpr auto kMemoryForCache = 128 * 1024 * 1024; // was 32, updated to 128
const auto kAnimatedStickerDimensions = QSize(512, 512);
using FilePathResolve = DocumentData::FilePathResolve;