2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix caching for large sticker area.

This commit is contained in:
John Preston
2019-06-27 18:57:32 +02:00
parent 808583c5ae
commit 4a7b5a8e01
11 changed files with 80 additions and 33 deletions

View File

@@ -20,7 +20,9 @@ namespace Cache {
struct Key;
} // namespace Cache
// This value is used in local cache database settings!
constexpr auto kMaxFileInMemory = 10 * 1024 * 1024; // 10 MB max file could be hold in memory
constexpr auto kMaxVoiceInMemory = 2 * 1024 * 1024; // 2 MB audio is hold in memory and auto loaded
constexpr auto kMaxStickerInMemory = 2 * 1024 * 1024; // 2 MB stickers hold in memory, auto loaded and displayed inline
constexpr auto kMaxWallPaperInMemory = kMaxFileInMemory;