17 ms·
When Discord is open in the background, NVIDIA card will not reach full speed
- snake_plissken 4y agoDiscord can definitely do some strange things to your machine. I can't play DayZ when it's open, the game will not connect to any servers and errors out with this "player auth login state" message. I thought it was my internet connection but running a server locally also resulted in the same error. It took me a few months of on-and-off searching, but I eventually found a comment on a message board where someone had experimented with things by closing different sets of applications and then trying to connect to a DayZ server. They finally figured out it was Discord that was causing the issue.
- brianshaler 4y agoSounds like a port issue. I imagine the first thing most people did was list the ports in use when either app was running. Did the investigation end at finding the culprit or did they figure out the actual cause?
- snake_plissken 4y agoThey never figured out the actual mechanism involved, just that running Discord caused the connection issue, and that when Discord wasn't running, they could connect to a server and play the game.
- yamtaddle 4y agoMy friend group started using Discord during the pandemic to continue our previously-in-person RPG sessions. I don't know how people find it tolerable. It'd kill the battery of a Macbook that could handle 6-8 hours of actual work (this is pre-M1) or 10ish hours of playing Netflix or whatever, in 2 hours flat, fans whirring madly the whole time. WTF. And it wasn't just one of us, and it wasn't just Macs, anyone on a battery-powered device saw their battery life cut to a sliver of what it should be. To make matters worse, nearly every session saw at least one person's Discord simply crash and have to restart. What is this, the 1990s? I was video-chatting in goddamn 2002 on a potato. Yeah the resolution was ass, but it's not like this is some totally new, hyper-advanced tech. It should have gotten far more power efficient! Look how great codecs are now! Video chat shouldn't burn my battery like I'm having it calculate digits of Pi in a hot loop on 20 threads plus a hundred graphics-chip threads.
- est31 4y agoIt's because a) people want high resolution, and b) software development is cutting corners like building on electron. Lastly, Discord has absolutely the worst software engineering behind it.
- Topgamer7 4y agoIt's not about cutting corners. It's about time to effect change. It's about cross device and platform support. It's about it being easier to find developers familiar with the browser stack then native app developer. That being said I would love to have less memory allocation on my devices when effectively idle too.
- tescocles 4y ago>It's about time to effect change. It's about cross device and platform support. It's about it being easier to find developers familiar with the browser stack then native app developer. One might consider these as cutting corners - hiring web developers to build an app that really should be native
- est31 4y agoThe aspects you mention mostly make things easier for the developer side, not for the user side, which get only the indirect advantage of a more feature rich app. If you want to do things properly, you hire separate teams who do native development for each platform, or you hire one Qt team for desktop and two teams for the two app platforms. Of course that's expensive, but again developer vs user side. That's what I mean by cutting corners. And regarding electron there are different kinds of apps performance wise, like Atom vs VS Code. Discord is more on the Atom side of things, sadly. Discord is also so big, that interested people develop lean third party clients for it. It's possible, but Discord rather bans them and forces users on the worse electron/web alternative.
- throw10920 4y agoMost of this is false. Ripcord achieves near-feature-parity with the official Discord and Slack apps using cross-platform desktop technologies with a fraction of the resource usage with a single developer. Ripcord's very existence contradicts most of the claims you've made above.
- xeromal 4y agoHowdie fellow DayZ brother.
- jeoqn 4y agoIf I had to guess I’d say discord attaches to the dayz executable to show the discord overlay in-game and the dayz anti cheat doesn’t like it when processes get attached to the game because that’s how cheats work and doesn’t let you auth into the online game.
- Aachen 4y agoDoes dayz use DRM? My first thought is that they've got a false positive in their lie detector rather than that the Discord client somehow reaches into dayz and causes it to give "authentication state" errors. Note that you can also use Discord just as a browser tab, dunno what the difference is with having a client as I've only ever used the browser version (and I bet the client is electron aka outdated browser under the hood anyway).
- explaingarlic 4y agoAnything that injects DLLs and hooks into lib functions will have this effect on unstable software that was not written with a comprehensive understanding of how the majority of Windows programs operate. It's not Discord's fault that they are using the APIs provided to them by Microsoft fairly, legally, cleanly and non-intrusively and not everyone supports them. Maybe it's the assumption that legitimate/good-will programs do not interact that causes this issue. It's ridiculous, and untrue. I don't really use Discord and I have a strong distaste for the kinds of social circles that it breeds, but it is a technically excellent product. If someone wants to see an example of a triple-A game product that is built with this kind-of misunderstanding of the NT kernel and Windows operating system (and shell, and their own compiler toolchain... Oh my...), here lies a funny video: https://www.youtube.com/watch?v=b8xtw54-lCI https://www.youtube.com/watch?v=b8xtw54-lCI
- MaxikCZ 4y ago>and I have a strong distaste for the kinds of social circles that it breeds This feels like "dog bit me once, so now I will hate all the dogs". Discord is a platform for comunities, and its your choice to choose amongst them. Many of such are of superb quality you cant find anywhere else. The key is in moderation.
- Firmwarrior 4y agoCan you recommend any interesting groups? I use Discord all the time, but in my experience it's all just noob programmers, cryptocurrency people, gamers, and troglodytes. (What it says about me that I'm in these groups, I'll leave as an exercise to the reader)
- miga 4y agoThere are many problems with discord, and GPU is not the worst one. Discord Snap has to block many unusual activities, but I still see these: * attempt to `ptrace` processes all the time; * using 99% CPU; * to work Discord needs some non-standard interfaces to be connected; * Discord tries to track which other programs you run by default and shares it. * too frequently restarting desktop integration snap until the logs make machine non-functional (got 500GB.) * blocking other programs using desktop integration for file dialogs: latency of several minutes, sometimes dialogs never appear. Discord is as dodgy app as can be. Hope we will not find it is actually another distribution of spyware. Since programs with so many bugs and crashes are frequently prone to security issues, I recommend to replace Discord with another app that allows push-to-talk.
- nextaccountic 4y ago> * attempt to ptrace processes all the time; There are Discord employees on the thread so I gotta ask.. what's the justification on this one? Shit like this makes open sourcing the client a must for me
- charcircuit 4y ago>Shit like this makes open sourcing the client a must for me The client is written in javascript. It's not hard to go look at the source.
- nextaccountic 4y agoOpen source isn't about looking at the sources. It's about legally forking the client to remove malware and other unwanted features. Open source is about giving back users control over their own computer
- mmis1000 4y ago'Open source' didn't mean you can legally modify and republish it. 'Free software' does.
- deathanatos 4y agoInteresting. I discovered just the other night that merely minimizing Discord nets me about a 20 FPS improvement in Factorio. (Even if Discord is otherwise off-screen, which it normally is, as Factorio is fullscreen, and there's no second monitor for me.)
- SSLy 4y agoI'd assume it's their State of the Art™ React® frontend that's hammering your L3 cache with constant updates.
- deathanatos 4y agoI'd like to assume that too, frankly. But I actually think it's slightly more complex. I've got CPU time to spare, as it is, and Factorio gets a solid 60 UPS. (I.e., the game simulation proceeds without lag¹.) It's the FPS that isn't there, and I think it's mostly constrained on GPU time…? But I'm really not entirely sure where the bottleneck is. (I also don't think the NVIDIA reports Discord as being on the GPU, too, so … IDK. 20 FPS is a stark, hard to miss difference.) ¹(usually…)
- bob1029 4y agoThere is probably some context switching overhead between Discord and whatever game at the GPU driver level.
- nightski 4y agoIt's a lot more likely to be the overlay imho.
- SSLy 4y agoOh, huh, yeah. That sounds plausible.
- speps 4y agoSo you were at 0 FPS and now at 20 FPS? Using FPS for performance without giving the before/after numbers is useless...
- i386 4y agoTurn off “hardware acceleration” in discord settings. It’s a huge GPU hog.
- jaimehrubiks 4y agoIt would be nice to know if turning this off solves OP and other related issues.
- MaxikCZ 4y agoWont it just become huge CPU hog?
- kibwen 4y agoI exclusively use Discord in a browser tab. I simply won't use a dedicated app for anything that can be done in a web browser.
- wjamesg 4y agoLikewise, highly recommended
- bob1029 4y ago> I simply won't use a dedicated app for anything that can be done in a web browser. In 2023, what app experience is still impossible to do in the browser? The only things I can come up with are apps requiring access to outside hardware or files. There are now several entirely unique ways in which a AAA gaming experience could be delivered to a client browser. If we can ship resident evil frames to a Chromebook at 30+fps, is there anything we can't do?
- anonymousab 4y agoI believe the discord app has some weird limitations around global shortcuts and push-to-talk when you use the browser tab instead of the desktop app. One use case also used to be that you would use a browser tab for one discord account and the desktop app for another, but container tabs + browser profile switching made that less necessary. And then discord eventually added support for multiple accounts.
- miohtama 4y agoDiscord chat works fine in a browser. It is only call options (audio and video codecs?) that give headache.
- bob1029 4y ago> global shortcuts and push-to-talk I think we are just 1 tiny browser API away from this one being solved too. If we can agree on a way to capture the pointer device, I'm sure we could figure out a reasonable way to capture certain user-defined keys. The actual key that is subscribed to can be abstracted away by using some registration API. I think this would eliminate key logger concerns (you'd have to ask the user for every key on their keyboard) E.g.: RequestGlobalHotkey('my-hotkey-id', 'Discord Push to Talk'); and then if the user presses it, we call something like OnGlobalHotkey(e) where the arg contains 'my-hotkey-id' and keypress state.
- jokoon 4y agoprobably some bitcoin mining worm?
- rideontime 4y agoProbably not.
- dncornholio 4y agoDiscord is a fucking bitch.. Find Something interesting, you have to join some Discord to find all the information. So you join the Discord and then you have 100s of channels with chat.. Try to find the information, need a role, I give up. It's almost angering me how terrible this program is, seeing so many people use it. It currently is being abused. Please use Discord for chat, but don't use it as your main platform, please! Rant over.
- loa_in_ 4y agoIt's absolutely great for moderators and server owners though. Also color coding user names is surprisingly good to enrich communication on public channels. I guess that goes for personalisation in general but think is simple and very effective. Channel separation and hiding and other permissions are doing great service to reduce clutter, it's a trade off I guess.
- Muehe 4y ago> So you join the Discord and then you have 100s of channels with chat.. Try to find the information, need a role, I give up. I know where you are coming from here, but that's not really on Discord, but on individual server management. The people who organise their Discord servers like that would probably have created a similar mess in ye olde forum times, or on Slack or whatever. Plus bigger servers tend to be subject to SPAM and scamming and counter-measures seem ad-hoc at times because native tools for handling that are a relatively recent addition. And for all its faults (not open source, slow, privacy concerns, OP, etc.) Discord also has some things going for it. Lots of people are already on it so network effect is a thing here, it's relatively easy to pick up the basics off and there are no immediate paywalls (which makes it attractive to semi-public projects without a cash flow), a lot of basic and advanced features are there to use, and most of them work across a lot of platforms. My biggest gripe with it (besides the aforementioned) is that its better new features like forum channels and stage channels are locked behind usage metrics and/or paywalls.
- cordobaplaza 4y agoshould I switch to using the browser version instead?
- nerdjon 4y agoI really have a love hate relationship with discord and I feel like it is a prime example of an application that should be "simple" but just seems far more complicated than it should be. Currently my biggest annoyance is for some reason every time I start a game, it also tries to access my Camera. Some people online are saying that it is because my webcam has a mic... but why is it trying to access my mic when I launch a game and discord is just sitting in the background?!? But at the same time I have a lot of friends and groups I game with on it, sometimes in voice chat. The convenience of it is really nice.
- charcircuit 4y agoDo you have the discord overlay enabled?
- nerdjon 4y agoIt looks like it is, I will try disabling it. Not really sure why the overlay would be trying to access my webcam or my microphone either though. But I also never use it and not sure why its enabled.
- thewebcount 4y agoI can't believe in this day and age there are still solutions like this. This is reminiscent of having to manually set IRQ settings to get games to play properly and is one of the reasons I stopped using Windows decades ago. This is giving me PTSD flashbacks.
- jhgg 4y agoHey all, I work at discord and specifically have been tracking this issue. We recently released support for AV1 hardware encoding for go live streams. However, the process of probing the GPU for what codecs it supports has triggered a latent nvidia driver bug. We are releasing a workaround some time today, and nvidia is releasing a driver update to address this issue as well. Apologies for any inconvenience this has caused.
- snet0 4y agoSo this is an Nvidia-side bug, rather than a Discord-side bug? But Discord's new feature simply exposes it?
- jhgg 4y agoCorrect.
- Aachen 4y agoI mean, that's what it sounds like when reading the headline. Card not reaching full speed under <condition> is an issue with the card. Impaired performance could be from <condition> occupying it, but that's not what it says (it sounds like clock scaling or something). That you've been investigating this for Nvidia is very nice of you!
- kirkules 4y agoDiscord has a large contingent of gamers among its users who expect to be able to use discord to communicate while gaming, so even if this isn't Discord's fault it's in their interest to look into it and facilitate a solution
- hn92726819 4y ago> but that's not what it says That's one interpretation. But it could also read as "Discord bug instructs Nvidia card to throttle when in background". The title should have specified the bug was on Nvidia's end
- mox1 4y agoPrpTip: Use discord in your browser. I use it for gaming, with voice chat. Works fine. The only downside is that your voice chat audio will output to whatever channel your browser audio is set to. Edit: also push to talk wont work, but it will pickup the microphone audio while inside a game. Set the threshold high or use the mute button on the microphone. So if you have a headset and want voice chat to go through that, make sure to set that to the default audio channel in your OS before you join the voice chat. Inputs (microphone) have no such restrictions. Other than that gotcha, its about 1000% better than running a huge bloated electron App.
- dbg31415 4y agoCan you still use push to talk via browser? Do you get an overlay showing who is speaking?
- nickphx 4y agoNothing like scope creep on a simple chat app to turn into to a bloated beast of uselessness that impacts system usability.
- kefka_p 4y agoI must be having a hard time waking up today, or something, because I can’t wrap my brain around why a chat app would need 3D acceleration. The first chat sites on the web e.g. Bianca’s, Poolside, and Talker were built using more primitive versions of the same interface tools used by electron and while they didn’t have the functionality of video and audio chats, they also didn’t break your GPU driver. I miss the Unix philosophy at times.
- seanhunter 4y ago> I can’t wrap my brain around why a chat app would need 3D acceleration. A big part of discord's target community is gaming/gamers. One of the features it provides is the ability to livestream the game you are playing and view streams of games others are playing. Definitely not my area, but I wouldn't be surprised if streaming some game with an overlay would require 3d acceleration to not suck.
- kefka_p 4y agoStreaming functionality isn’t chat, though. AMD gives you the option to not install streaming functionality when you install their drivers and I’m pretty sure they target gamers too. It reminds me of the age of Windows bloatware. Trying to pile all the ingredients on a single piece of bread does not a good sandwich make. On the contrary, it leaves me with an impression that they have to rely on the brand recognition and snowball effect of previous products. I would probably hold their software in higher regard if it wasn’t just one monolithic multi-tool. They don’t even have to push multiple apps, but could use a modular architecture at the app level with plug-ins to support non-core functionality.
- genderwhy 4y agoDiscord is not a "chat app". That's a pretty narrow view on how it is both used and vended. It's a communications app, at a minimum, and people use it for audio, video, chat, events, and a bunch of other stuff that may require hardware acceleration.
- 4y ago
- nubinetwork 4y agoIts interesting that the temporary fix for this is to generate some file, edit it, and import it back in... What else goes into this file, and why?