2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Limit to 30 FPS in small stickers.

This commit is contained in:
John Preston
2019-07-05 19:15:25 +02:00
parent 72a9d61b97
commit 198de85ce5
17 changed files with 91 additions and 35 deletions

View File

@@ -485,6 +485,7 @@ void StickerSetBox::Inner::showPreview() {
not_null<Lottie::MultiPlayer*> StickerSetBox::Inner::getLottiePlayer() {
if (!_lottiePlayer) {
_lottiePlayer = std::make_unique<Lottie::MultiPlayer>(
Lottie::Quality::Default,
Lottie::MakeFrameRenderer());
_lottiePlayer->updates(
) | rpl::start_with_next([=] {