Live data from Hacker News

Why are my headphones buzzing whenever I run my game?

alexene.dev

11–20 of 153 posts

Re: Why are my headphones buzzing whenever I run my game?

#11
post #7

Not at all surprised to see that it's a Schiit DAC causing this problem

What’s with the animosity towards Schiit? They seem to make decent products. Noise from using USB power delivery for audio devices is common.. that’s why you can (and should) use the dedicated power input to you DAC/amp

Re: Why are my headphones buzzing whenever I run my game?

#14
I have a similar issue with Genshin on PS5 when using the headphone jack in the controller with IEMs (didn't happen with a headset). It starts buzzing in my left ear when I open the game menu or open the map. On the map it only buzzes when I move the cursor, interestingly enough. I later noticed that the PSU coil whine coincided with the same events. Still no idea why it's like that

Thankfully doesn't happen with an external DAC.

Re: Why are my headphones buzzing whenever I run my game?

#17
post #10

> A picking texture is a very simple idea. As the name says, it’s used to handle picking in the game, when you click somewhere on the screen (e.g. to select an unit), I use this texture to know what you clicked on. Instead of colors, every object instance writes their EntityID to this texture. Then, when you click the mouse, you check what id is in the pixel under the mouse position. Unrelated, but why? Querying a po…

It aligns with what appears on the screen accurately and without needing any extra work to make sure there's a representation in a tree that's pixel-accurate. It's also pretty low overhead with the way modern GPU rendering works.

Re: Why are my headphones buzzing whenever I run my game?

#18
post #10

> A picking texture is a very simple idea. As the name says, it’s used to handle picking in the game, when you click somewhere on the screen (e.g. to select an unit), I use this texture to know what you clicked on. Instead of colors, every object instance writes their EntityID to this texture. Then, when you click the mouse, you check what id is in the pixel under the mouse position. Unrelated, but why? Querying a po…

Well, it's significantly easier to implement than a octree. Game is actually 3D under the hood, projected at a careful angle to look isometric 2D.

The reason the game is 3D has to do with partially visible things being way easier than with isometric textures layered in the right order.

Also, now that i just grab a pixel back from the GPU, it's no overhead at all (to construct or get the data for it).

Re: Why are my headphones buzzing whenever I run my game?

#19

I have a similar issue with Genshin on PS5 when using the headphone jack in the controller with IEMs (didn't happen with a headset). It starts buzzing in my left ear when I open the game menu or open the map. On the map it only buzzes when I move the cursor, interestingly enough. I later noticed that the PSU coil whine coincided with the same events. Still no idea why it's like that Thankfully doesn't happen with an…

[deleted]

Re: Why are my headphones buzzing whenever I run my game?

#20

The source is electrical noise, but the solution of isolating the audio chain from the computer's USB means that in the future you might not notice when you've introduced another GPU memory bandwidth hog into your rendering loop. Good story, though.

That might be the strongest spacebar heating workflow situation I've actually run into so far

https://xkcd.com/1172

Post reply on HN