Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Discord freezing when in-game overlay is enabled #1463

Open
2 tasks done
PriscillAAH opened this issue Oct 23, 2022 · 20 comments
Open
2 tasks done

[Bug] Discord freezing when in-game overlay is enabled #1463

PriscillAAH opened this issue Oct 23, 2022 · 20 comments

Comments

@PriscillAAH
Copy link

Before Reporting

  • I found no existing issues matching my bug
  • My issue is not caused by a plugin or theme

Describe the Bug

Whenever I open any game with in-game overlay enabled my discord freezes. Unable to do anything in Discord, it's just completely frozen for about 30 seconds or more, until the overlay appears. I have done clean install Discord and Better Discord. Doesn't freeze on regular Discord or BD without in-game overlay installed. Still freezes without plug-ins on BD as well.

Expected Behavior

Expect in-game overlay to open and Discord not to freeze.

Steps To Reproduce

  1. Install BD
  2. Enable in-game overlay
  3. Open game
  4. Discord freezes for 30 sec
  5. In-game overlay appears
  6. Discord unfreezes

Operating System

Windows

Discord Version

Stable

BetterDiscord Version

v1.82

Anything else?

No response

@Tropix126
Copy link
Member

Hmm, BD shouldn't even be touching the overlay at all since it doesn't inject into it. Have you made sure that this only happens with BD installed?

@PriscillAAH
Copy link
Author

Yes, BD fresh install no plugins. It only freezes when the in-game overlay is turned on for a game with BD installed. Normal Discord + in-game overlay doesn't freeze. https://discord.com/channels/86004744966914048/1028636567792795668 Other people mentioning the same issue as me.

@Wryyyong
Copy link

I can attest to this same issue, for what it's worth

@rauenzi
Copy link
Member

rauenzi commented Dec 14, 2022

I am unable to recreate this. I can attest that BD does not touch the overlay browser at all.

@NotxFound
Copy link

NotxFound commented Dec 29, 2022

@rauenzi

The example: https://streamable.com/o0jfzn (to big to upload here)

An example video, when the game starts discord is working fine, but only when in game the overlay starts to load in, discord freezes till in game the overlay information popup, when the overlay loading is done discord is working again.

I hope I will bring something.

@NotxFound
Copy link

Any updates?

@rauenzi
Copy link
Member

rauenzi commented Mar 4, 2023

There is no update as I do not experience this issue nor does anyone in the developer group. BD does not touch anything with the overlay so I have no idea why this would happen.

@PriscillAAH
Copy link
Author

PriscillAAH commented Apr 4, 2023

Issue still happening for me. Could be in too many discords be the issue?

Edit: Nevermind, I tried a different discord account without any many servers issue still happens.

@skittles-fivem
Copy link

skittles-fivem commented Jun 17, 2023

Yeah same thing happens to me especially playing war thunder trying to tab out to watch his stream
It also does it if I click on different servers to fast

@rauenzi
Copy link
Member

rauenzi commented Nov 13, 2023

@PriscillAAH is this still happening for you? I tested this again yesterday and was unable to reproduce it.

@PriscillAAH
Copy link
Author

PriscillAAH commented Nov 13, 2023

@rauenzi Yeah, it still is happening for me any time I open games with the overlay enabled it freezes like this. Are there some sort of logs I can give you?

@rauenzi
Copy link
Member

rauenzi commented Nov 13, 2023

Not really, BetterDiscord does no touch or inject into the overlay so there's not really any logs to collect. I guess in the desktop client you could record the devtools console to see if there's any obvious spot where it freezes.

@rauenzi
Copy link
Member

rauenzi commented Feb 22, 2024

To clarify these steps:

Install BD
Enable in-game overlay
Open game
Discord freezes for 30 sec
In-game overlay appears
Discord unfreezes

Can you say which Discord freezes? As in main window versus the overlay. When you open a game, is the main Discord client freezing for 30 seconds? If so which games does this occur with? I have been actively using the overlay with no effect on the main client window.

@Wryyyong
Copy link

Can you say which Discord freezes? As in main window versus the overlay.

The main Discord client window.

When you open a game, is the main Discord client freezing for 30 seconds?

Roughly 20-30 seconds, yes.

If so which games does this occur with?

Game-agnostic; any application for which the overlay is enabled will cause this issue when the overlay tries to inject itself, only ceasing once it finishes injection.

@rauenzi
Copy link
Member

rauenzi commented Feb 22, 2024

I tested this again just now and neither the overlay nor main window froze for me. I was able to use and interact with the main window the entire time without any lag. I'm not sure what could be causing it for those that experience it, but Discord's overlay is a blackbox that we neither touch nor have control of.

@Huderon
Copy link
Contributor

Huderon commented Feb 23, 2024

I'm a dummy, but I am able to replicate this issue fairly consistently as long as I have hardware acceleration enabled. It seems to occur specifically while the overlay is connecting to the game. I have no idea how to troubleshoot beyond that point though.

Interestingly, I experience the issue all the same on native Discord. Although it doesn't seem quite as intense, there's still a noticeable pause while the overlay connects with hardware acceleration is enabled

@rauenzi
Copy link
Member

rauenzi commented Feb 23, 2024

I also have hardware acceleration enabled but I don't notice this with or without BD. Any change you could post your PC's specs for comparison?

@Huderon
Copy link
Contributor

Huderon commented Feb 23, 2024

Operating System: Windows 11 Pro 64-bit (10.0, Build 22621) (22621.ni_release.220506-1250)
Processor: AMD Ryzen 5 3600 6-Core Processor               (12 CPUs), ~3.6GHz
Memory: 32768MB RAM
Card name: NVIDIA GeForce RTX 3060 Ti

@rauenzi
Copy link
Member

rauenzi commented Feb 24, 2024

I would say your system is even better than mine, which makes this all the more confusing.

@Huderon
Copy link
Contributor

Huderon commented Feb 24, 2024

It's odd, for sure. As it stands, I can definitely still notice it without BD installed, even if it's not quite as bad.

For those that are experiencing it, I'd suggest disabling hardware acceleration in the 'Advanced' section of your Discord settings to see if that changes anything for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants