Skip to content

Commit

Permalink
Reduce GIF frame window from 30ms to 20ms (#3886)
Browse files Browse the repository at this point in the history
* fix frame timings

* add changelog
  • Loading branch information
TroyKomodo committed Jul 31, 2022
1 parent 109fb5c commit ebc7852
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- 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: 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)
Expand Down
2 changes: 1 addition & 1 deletion src/singletons/helper/GifTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/singletons/helper/GifTimer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace chatterino {

constexpr long unsigned gifFrameLength = 33;
constexpr long unsigned gifFrameLength = 20;

class GIFTimer
{
Expand Down

0 comments on commit ebc7852

Please sign in to comment.