FizzleFade

2017年8月28日

AI 摘要 AI 生成,可能有误

The author, an avid reader of source code, shares their delight in discovering elegant solutions like Fizzlefade while working on the Game Engine Black Book: Wolfenstein 3D, comparing it to the famous Quake 3 inverse square root trick. Fizzlefade is the function that transitions between scenes in Wolfenstein 3D by turning screen pixels to a solid color one at a time in a seemingly random pattern.

I enjoy reading a lot of source code and after 15 years in the field I feel like I have seen my fair share. Even with a full-time job, I still try to spare evenings here and there to read. I don't see myself every stopping. It is always an opportunity to learn new things to follow somebody's mind process.

Every once in a while I come across a solution to a problem that is so elegant, and so creative that there is no other word but "beautiful" to describe it. Q_rsqrt, better knows as "Inverse Square Root" and popularized by Quake 3, definitely belong to the family of breathtaking wizardry. While I was working on the Game Engine Black Book: Wolfenstein 3D I came across an other one: Fizzlefade.

Fizzlefade is the name of the function in charge of fading from a scene to an other in Wolfenstein 3D. What it does is turn the pixels of the screen to a solid color, only one at a time, seemingly at random.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Fabien Sanglard

My agent.md to improve LLM-assisted code quality

Quake Shareware, a CD-ROM just a little too full

Jurassic Park computers in excruciating detail

A dock that finally wakes up reliably

Don't you mean extinct?