Show HN: Asdf Overlay – High performance in-game overlay library for Windows

4 weeks ago 2

Npm Crates.io Documentation

Blazingly fast™ & Easy to use Windows Overlay library

Asdf Overlay provides an easy to use interface to draw on top of window framebuffer by hooking rendering backends

GPU shared texture was used to avoid framebuffer copy via CPU. As a result, Asdf Overlay is capable of rendering overlay with any size without performance loss.

Screenshot

  • OpenGL
  • DX9
  • DX10
  • DX11
  • DX12
  • Vulkan
  1. Supports multiple backends
  2. Blazingly fast™
  3. GPU accelerated shared overlay surface
  4. Input capture control
  1. node, pnpm package manager
  2. nightly rustc, cargo, msvc(x64, x86, arm64)
  3. Install x86_64-pc-windows-msvc, i686-pc-windows-msvc, aarch64-pc-windows-msvc rustc targets

Installing node dependencies

Warning

DLL and the client must be built using same rust compiler or it will misbehaviour

Examples are located in examples directory.

Run

pnpm build && pnpm --filter ingame-browser start <process_name>

Pressing Left Shift + A will show ingame browser overlay and input will be redirected to browser window. Pressing again will close it.

ingame-browser.mp4
  1. Run
cargo build && cargo run -p noise-rectangle <process_name>

Glitching squares appear and disappear on target process

noise-rectangle.mp4
  1. Run
cargo build && cargo run -p input-capture <process_name>

It will listen and block inputs from target process until process exit

Run with debug build. Use external debug log viewer (ex: DebugView) to see tracing log of injected process

This project is dual licensed under MIT or Apache-2.0 License

Read Entire Article