Live data from Hacker News

Why are my headphones buzzing whenever I run my game?

alexene.dev

1–10 of 153 posts

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

#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 point in a basic quad tree takes microseconds, is there any benefit to overengineering a solved problem this way? What do you gain from this?

Post reply on HN