Live data from Hacker News

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

nvidia.custhelp.com

201–210 of 241 posts

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

#201
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…

Can you have a look on how the web ui does the typing indicator animation? I really need an engineer to know what is happening there, why is it animating an svg in the dom by looping in Javascript, instead of just using a gif? This is destroying the battery by pegging a cpu core on firefox.

At least this has been the case last time I checked. And there is no way to disable the animation.

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

#202
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…

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

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

#203
post #18

Earlier quoted context omitted.

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

How can you say Discord has the worst software engineering when they serve millions of active users with little downtime?

I made that comment about the worst software engineering in the context of this discussion, which is about the frontend. If discord had good fronted software engineering, it wouldn't be as bloated. With good software engineering you can make even web/electron apps fairly lightweight (compare Atom with VS Code).

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

#204

Earlier quoted context omitted.

Webapps have better privacy protections than native. Battery/cpu is a tossup depending on the app. With the example above of chat apps I've found that the webapps use less cpu/memory. I think you're correct that desktop operating systems are in sore need of a permissions model for non-free apps. It should be possible to build one, and then shame vendors into using it.

A well written native app should use less battery and CPU than a well written web app. Lots of native apps are not well written though and, like Gruber said, many are just a wrapper around a web view showing their website.

Native code should be able to do more work with less power, yes. But in practice, these kinds of runtime efficiencies aren't the overarching factor. Native apps add features and these features in aggregate end up using far more memory, cpu, and being otherwise invasive into the system -- for example, the discord native app attempting to ptrace everything else on the system.

The extra crap -- especially information gathering -- ends up making the native apps slower and buggier.

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

#205

Earlier quoted context omitted.

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

Video and game streaming is one of its core features. It is not a good user or server owner experience to have to manage multiple applications depending on feature. You can turn off 3d acceleration, if I understand correctly.

The microkernel would like a word with you, good sir. As would the Unix toolchain, the Google suite, iWork, and Microsoft Office. If it was modular, you wouldn’t need separate apps per se.

On the other side of the multiple app token, Microsoft doesn’t build out PowerPoint, Word, and Excel as a single monolithic Office app.

And I’m pretty sure that’s among the most commercially successful consumer software in the history of computing.

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

#206

Earlier quoted context omitted.

Doesn't every consumer AMD/nVidia GPU and every consumer Intel CPU (as long as it has integrated graphics) made in the last 10 years have hardware accelerated H.264 encoding?

Yes, and it's probably good enough, but Nvidia's produces noticeably green (ironic) video. It's not a good encoder by any means.

I think intel quicksync also has that(random green screen) sometimes. The only one not suffered from it is amd hardware encoding. But the encode quality is worse than the other two. Sometimes to the point that I want to just disable it.

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

#207

Earlier quoted context omitted.

Couldn't you do that by just scanning `px aux` or even just `/proc` rather than running a tool that is meant for observing and control the execution of other processes? A simple name matching should be enough, rather than digging into the execution of the process itself.

I am surprised anti cheats don't detect and ban everyone with discord installed if it is really doing ptrace all the time.

Dos anticheats even run on linux?

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

#208

Earlier quoted context omitted.

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

Open 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

'Open source' didn't mean you can legally modify and republish it. 'Free software' does.

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

#209
post #19

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

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

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

#210
post #183
post #18

Earlier quoted context omitted.

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

The worst software engineering? Have you met Teams? The flagship chat application from the world’s biggest software company, which is often unable to send chat messages

So, second worst is better, then? Btw the Teams product is not a "chat solution", but a workspace collaboration tool; chat is just a small part of it. And now I feel dirty from defending the steaming pile of garbage that is Teams :)
Post reply on HN