Reduce GIF frame window from 30ms to 20ms (#3907)

This commit is contained in:
Troy 2022-09-03 23:20:30 -04:00 committed by GitHub
parent 46efa5df3d
commit bc38d696bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -25,6 +25,7 @@
- Minor: Added `/copy` command. Usage: `/copy <text>`. Copies provided text to clipboard - can be useful with custom commands. (#3763) - Minor: Added `/copy` command. Usage: `/copy <text>`. 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: 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: 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, #3907)
- Minor: Warn when parsing an environment variable fails. (#3904) - Minor: Warn when parsing an environment variable fails. (#3904)
- Minor: Load missing messages from Recent Messages API upon reconnecting (#3878, #3932) - Minor: Load missing messages from Recent Messages API upon reconnecting (#3878, #3932)
- Minor: Add settings to toggle BTTV/FFZ global/channel emotes (#3935) - Minor: Add settings to toggle BTTV/FFZ global/channel emotes (#3935)

View file

@ -8,7 +8,8 @@ namespace chatterino {
void GIFTimer::initialize() void GIFTimer::initialize()
{ {
this->timer.setInterval(30); this->timer.setInterval(gifFrameLength);
this->timer.setTimerType(Qt::PreciseTimer);
getSettings()->animateEmotes.connect([this](bool enabled, auto) { getSettings()->animateEmotes.connect([this](bool enabled, auto) {
if (enabled) if (enabled)

View file

@ -5,7 +5,7 @@
namespace chatterino { namespace chatterino {
constexpr long unsigned gifFrameLength = 33; constexpr long unsigned gifFrameLength = 20;
class GIFTimer class GIFTimer
{ {