diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c8710595b0..6f05a6fdbde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - 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) - Bugfix: Fix crash that can occur when closing and quickly reopening a split, then running a command. (#3852) - Bugfix: Connection to Twitch PubSub now recovers more reliably. (#3643, #3716) - Bugfix: Fix crash that can occur when changing channels. (#3799) diff --git a/src/singletons/helper/GifTimer.cpp b/src/singletons/helper/GifTimer.cpp index 2edf7bacdf6..658d4c4188c 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(30); + this->timer.setInterval(gifFrameLength); getSettings()->animateEmotes.connect([this](bool enabled, auto) { if (enabled) diff --git a/src/singletons/helper/GifTimer.hpp b/src/singletons/helper/GifTimer.hpp index da47149b8b2..d20d933bc34 100644 --- a/src/singletons/helper/GifTimer.hpp +++ b/src/singletons/helper/GifTimer.hpp @@ -5,7 +5,7 @@ namespace chatterino { -constexpr long unsigned gifFrameLength = 33; +constexpr long unsigned gifFrameLength = 20; class GIFTimer {