news.volyx.in

Ray tracing in notepad.exe at 30 FPS (kylehalladay.com)

747 points by ingve · 2330 days ago · 101 comments on HN

Article summary

The article describes a project where the author used DLL injection and API hooking to render graphics in Notepad.exe, achieving 30 FPS. The author built a memory scanner to find and modify the text buffer in Notepad, and used this to create a ray tracer and a Snake game. The project involved learning about Windows internals, memory scanning, and API hooking. The author's code is available on GitHub.

Main themes

  • Windows internals
  • memory scanning
  • API hooking
  • debugging
  • game development
  • security
  • CheatEngine
  • screen readers
  • code injection

What commenters say

  • Some commenters think that using CheatEngine to read and write another program's memory space is a common practice in certain contexts, such as debugging and game development.
  • Others argue that this is not a common or recommended practice, and that it can be a security risk.
  • There is a discussion about the use of shared memory and code injection in Windows, with some commenters pointing out that these techniques are used in certain legitimate applications, such as screen readers and debuggers.
  • A few commenters mention that modern operating systems have measures in place to prevent unauthorized access to another process's memory space, but that there are still ways to bypass these protections.
  • Some people think that the use of CheatEngine as a debugging tool is acceptable, while others prefer to use traditional debuggers like GDB.
  • The conversation touches on the idea that the ability to read and write another program's memory space can be useful in certain situations, but also poses security risks.
  • A few commenters note that the project described in the article is an example of creative and unconventional use of Windows APIs and internals.