night / betterttv

BetterTTV enhances Twitch with new features, emotes, and more.
https://betterttv.com
Other
1.21k stars 267 forks source link

Firefox becomes extremely slow #6764

Closed MightyCreak closed 6 months ago

MightyCreak commented 7 months ago

Describe the bug

On Twitch, BetterTTV seems to slow down Firefox up to a point where the OS asks why the application is not responding.

Steps to reproduce

  1. Go to a Twitch channel with Firefox (e.g. https://www.twitch.tv/barbarousking)
  2. Enter Studio mode (Alt+T)
  3. Enter fullscreen mode in Firefox (F11)
  4. Write some text in the chat
  5. See that each character gets slower and slower to appear, if you've written a long enough sentence, your OS might ask why Firefox is not responding

Expected behavior

No slowdown, as it was in a previous version of BetterTTV/Twitch.

Screenshots

image

(see how the CPU is at 100% at the 10s mark)

Device information

Additional information

May have to wait a few hours until you get the faulty behavior...

Edit 1: 30 mins in and you can see that it starts to slow down (could it be a memory leak?)

Edit 2:

Edit 3: updated the device information

dclstn commented 7 months ago

Hmm, what happens when you have emotes disabled?

MightyCreak commented 7 months ago

So yeah I've had a stream opened for a few hours and Firefox gets really slow. As you can see, the CPU gets to 100% while trying to display the text I've just input (see near the 20s mark):

image

The memory is good though (4GB out of 16).

@dclstn: Disabling the emotes doesn't change anything though.

But refreshing the page fixes the issue (for a while).

MightyCreak commented 6 months ago

I confirm that the same behavior happens on Chrome as well. It just takes more time to get there, and the page is still slightly more responsive than with Firefox, but it definitely happens (i.e. there is a huge lag between what you type and when the characters appear on screen).

night commented 6 months ago

it's hard to know why it is slowing down for just you after a while. You may need to log runtime performance when it is slow to see why it is slow. You can learn how to do that at https://developer.chrome.com/docs/devtools/performance#record You can download your log and email it to us so we can examine it.

MightyCreak commented 6 months ago

Ok, I'll close this issue: I just realized that I have the exact same behavior with the BTTV plugin disable.

Sorry for the trouble.

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues or feature requests.