Topics /

Games & Graphics

The most popular blog posts about games & graphics on Hacker News. 241 posts.

2026
63

Should you normalize RGB values by 255 or 256?

Let’s say you’re writing an image processing program. The program takes in an image, converts it to floating point, does some processing and finally saves the modified pixels to disk as 8-bit colors. The question today concerns how exactly the integer-to-float conversion should be done. There are two approaches which…

66

Correlated randomness in Slay the Spire 2

Here are three true statements about the game of Slay the Spire 2 (in single player): If you pick Neow's Bones in the Underdocks, the random curse is ~54% likely to be Debt.* It is impossible to receive Rebound from the Trash Heap event. Your first fight is 76% likely to drop a potion in Underdocks, and 4% likely to…

71

Software rendering in 500 lines of bare C++

In this series of articles, I aim to demonstrate how OpenGL, Vulkan, Metal, and DirectX work by writing a simplified clone from scratch. Surprisingly, many people struggle with the initial hurdle of learning a 3D graphics API. To help with this, I have prepared a short series of lectures, after which my students are…

75

RTX 5090 and Raspberry Pi: Can it game?

It turns out, you can attach an external GPU to a Raspberry Pi 5. So my natural first question is, can I game on it? Let’s try it out and compare it with some similar computers. Just a quick FTC required note: When you buy through my links, I may earn a commission. For the showdown of crappy gaming computers, we’ll…

81

Simplifying Vulkan one subsystem at a time

When those of us in the Vulkan® working group want to modify the API—whether it’s a new hardware feature to expose, a new use case we want to address, or even just a gap in the spec we want to address—we have one invaluable tool that we make heavy use of: extensions! Extensions are a wonderful way for us to get…

87

Bevy 0.20

Thanks to 227 contributors, 817 pull requests, community reviewers, and our generous donors, we're happy to announce the Bevy 0.20 release on crates.i…