From 5eb4fefad34a6a383e4aefcae760b31aea2f51db Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 24 Jan 2022 05:00:18 +0100 Subject: [PATCH] RLottie: Better animation on Android --- src/lib/rlottie/RLottie.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/rlottie/RLottie.ts b/src/lib/rlottie/RLottie.ts index 2b2b58d4d..b8566cf45 100644 --- a/src/lib/rlottie/RLottie.ts +++ b/src/lib/rlottie/RLottie.ts @@ -2,6 +2,7 @@ import { DPR, IS_SINGLE_COLUMN_LAYOUT, IS_SAFARI, + IS_ANDROID, } from '../../util/environment'; import WorkerConnector from '../../util/WorkerConnector'; import { animate } from '../../util/animation'; @@ -21,7 +22,7 @@ type Chunks = (Frames | undefined)[]; const CHUNK_SIZE = 1; const MAX_WORKERS = 4; const HIGH_PRIORITY_QUALITY = IS_SINGLE_COLUMN_LAYOUT ? 0.75 : 1; -const LOW_PRIORITY_QUALITY = 0.75; +const LOW_PRIORITY_QUALITY = IS_ANDROID ? 0.5 : 0.75; const HIGH_PRIORITY_CACHE_MODULO = IS_SAFARI ? 2 : 4; const LOW_PRIORITY_CACHE_MODULO = 0;