Programmer writes light-chasing demo program with Windows Notepad: 30 frames per second

Ray tracing is already a buzzword in today’s gaming world, with NVIDIA supporting hardware-level real-time acceleration from the RTX 20 Series graphics card, AMD recently upgrading the Radeon Rays 4.0 kit and finally adding ray-tracing support for graphics beyond the CPU. In addition, the end of the PS5, Xbox Series X release will be followed by a small wave of boom.

Programmer writes light-chasing demo program with Windows Notepad: 30 frames per second

In fact, the core of ray tracing is the calculation of complex geometric scenes such as light, reflection, shadow, and so on, veteran programmer Kyle Halladay wrote a very rudimentary ray-tracing demo program with Windows’s own notepad, with the help of DLL injection, memory scanning and other methods, the equivalent frame rate also reached 30fps.

While it may seem a far cry from the images of big games, the basic idea of ray tracing is well embodied.