From 76a891c5de1ca181328b61539e1acad3c25b793c Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 6 Aug 2022 19:29:08 +0200 Subject: [PATCH] Revert "Reduce GIF frame window from 30ms to 20ms (#3886)" This reverts commit ebc7852f9fc7fbcf3ca421304f03336b60765b9d. --- CHANGELOG.md | 1 - src/singletons/helper/GifTimer.cpp | 2 +- src/singletons/helper/GifTimer.hpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25d2d3837..1b3fc64be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,7 +25,6 @@ - Minor: Added `/copy` command. Usage: `/copy `. Copies provided text to clipboard - can be useful with custom commands. (#3763) - Minor: Removed total views from the usercard, as Twitch no longer updates the number. (#3792) - Minor: Add Quick Switcher item to open a channel in a new popup window. (#3828) -- Minor: Reduced GIF frame window from 30ms to 20ms, causing fewer frame skips in animated emotes. (#3886) - Minor: Warn when parsing an environment variable fails. (#3904) - Minor: Load missing messages from Recent Messages API upon reconnecting (#3878) - Bugfix: Fix crash that can occur when closing and quickly reopening a split, then running a command. (#3852) diff --git a/src/singletons/helper/GifTimer.cpp b/src/singletons/helper/GifTimer.cpp index 658d4c418..2edf7bacd 100644 --- a/src/singletons/helper/GifTimer.cpp +++ b/src/singletons/helper/GifTimer.cpp @@ -8,7 +8,7 @@ namespace chatterino { void GIFTimer::initialize() { - this->timer.setInterval(gifFrameLength); + this->timer.setInterval(30); getSettings()->animateEmotes.connect([this](bool enabled, auto) { if (enabled) diff --git a/src/singletons/helper/GifTimer.hpp b/src/singletons/helper/GifTimer.hpp index d20d933bc..da47149b8 100644 --- a/src/singletons/helper/GifTimer.hpp +++ b/src/singletons/helper/GifTimer.hpp @@ -5,7 +5,7 @@ namespace chatterino { -constexpr long unsigned gifFrameLength = 20; +constexpr long unsigned gifFrameLength = 33; class GIFTimer {