Live data from Hacker News

When Discord is open in the background, NVIDIA card will not reach full speed

nvidia.custhelp.com

221–230 of 241 posts

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#221
post #118

Hey 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…

I am on an older 970m. There are no driver updates. Can you have a probe-less version out? or

Is this related to a view port bug of Windows, and non-alignment?

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#222
post #4

There 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 lo…

* blocking other programs using desktop integration for file dialogs: latency of several minutes, sometimes dialogs never appear.

That's a Chrome/Chromium thing. Often, if I try to open the Nvidia control panel, it will not appear until I close Chrome. I've had something similar happen with rpcs3 (a ps3 emulator) - only with that, it wouldn't start compiling shaders until Chrome was closed. They continued just fine after reopening it.

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#223

I 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…

> 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.

It uses the GPU for the UI as well. Says so right in the settings. Sometimes I see using the GPU in task manager, sometimes not.

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#224

Earlier quoted context omitted.

You can also just look at how many developers it took to build similar programs, native and cross-platform, in, say, the 90s and early 00s. I wouldn't be surprised if a bunch of them had smaller teams for all platforms combined than Discord has for its single desktop client. Yet one would hope we've gotten more efficient at software development since then, and the entire excuse for using things like Electron is suppo…

I only ever used it for small GUIs for some scientific computing I did back in college, so maybe it's hard to use for larger projects, but the impression that I remember of Qt was that it had a pretty large component library, extensive documentation, and a drag-and-drop WYSIWYG UI editor! The workflow that I've seen for frontend coding today is that a designer makes a mockup in something like Figma, and then a fronte…

Yeah, I think you guys are right. It's like the history of vitamin C and scurvy on ships. We seem to have collectively lost some very obvious and straightforward knowledge

The usual explanation is that non-JavaScript devs (every programmer over the age of 40) was an amazing genius, and we need Electron/Flutter/Node/left-pad/etc now since there are so many new coders. I think you're on to something though. Somehow modern practices just result in wasting incredible amounts of time and effort tinkering with fiddly frameworks and boilerplate code

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#225

Earlier quoted context omitted.

Anything 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 pro…

>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.

Can 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)

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#226

Earlier quoted context omitted.

Mumble is probably the best VOIP solution on the market. The main issue blocking its wider adoption, IMO, is the lack of support for persistent, multi-media friendly, text chat. I've suspected for a while that Discord could be totally replaced by someone duct-taping Mumble and some forum software together.

Same. I've thought about what Mumble needs to be competitive at all in the market. * Persistent chat * Multimedia chat (Emojis, resized images, etc) * Camera streaming/game streaming (MUST HAVE these days) Additionally, if there were "mumble multi-server management" that allowed a host to spin up other servers quickly, third-parties could skim off Discord. There is no loyalty to Discord IMO, it's just so damned easy…

Last time I checked, mumble didn't have a web client either

Man, that would be pretty sweet though. Someone could cobble together an unholy Mumble + Mastodon beast of privacy-respectful gaming communications

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#227

Earlier quoted context omitted.

> the process of probing the GPU for what codecs it supports I think you can ask that question to Windows, instead of probing. Call MFTEnumEx API function with MFT_CATEGORY_VIDEO_ENCODER category, MFT_ENUM_FLAG_HARDWARE | MFT_ENUM_FLAG_TRANSCODE_ONLY flags, and MFVideoFormat_AV1 in the output video subtype. https://learn.microsoft.com/en-us/windows/win32/api/mfapi/nf...

I agree with your statement, but I understand why you'd want to probe. It's cross-platform, and it's more reliable... (unless you run into a driver bug). The function you linked to queries the registry, and that on its own can be invalid information. How does that info get there? It ultimately reminds me of this article: https://devblogs.microsoft.com/oldnewthing/20040211-00/?p=40...

> it's more reliable

Hardware codecs are complicated. See V4L2 Linux kernel API, it exposes hardware codecs without doing anything on top.

GPU vendors have higher chances of correctly using their hardware, compared to Discord developers.

> How does that info get there?

GPU driver package installs not just user/kernel mode halves of the driver, it also installs and registers these media foundation transforms. They are DLLs which wrap hardware codecs into higher-level API.

> reminds me of this article

The article is about Win95. It's now harder to ship broken Windows drivers. Windows checks for Microsoft's digital signature, and users expect drivers to be available on Windows update.

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#228

Earlier quoted context omitted.

If you'd rather use a native application, I can recommend Ripcord[1]. Ripcord is an alternative client. Unfortunately, the developer doesn't seem to make many sales, so some features are not implemented. The demo has infinite days, but it's a good idea to actually donate if you like the project :) [1] https://cancel.fm/ripcord/

Watch out with Discord and 3rd party clients. Their policies suck here and people have been banned for it already https://twitter.com/discord/status/1229357198918197248

Is that tweet ripcord related? The original tweet to which discord is responding is deleted.

I've been using ripcord for half a year now, and my account hasn't been disabled so far. If they actually choose to terminate my account because I'm using a more efficient client, I'm going to be really upset.

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#229

Earlier quoted context omitted.

[flagged]

I like it how it goes straight to "touch grass" when someone has a slightly different belief to someone else. Of course it must be unreasonable if they disagree with me!

[flagged]

Re: When Discord is open in the background, NVIDIA card will not reach full speed

#230

Earlier quoted context omitted.

[flagged]

I like it how it goes straight to "touch grass" when someone has a slightly different belief to someone else. Of course it must be unreasonable if they disagree with me!

[flagged]
Post reply on HN