benmcavoy.uk

SM-Record overlay screenshot
C++20 DirectX 11 ImGui DLL Injection

SM-Record

A high-performance recording mod for Scrap Mechanic that captures frames directly from the DirectX 11 render pipeline and saves them as PNG images.

Features

  • Real-time frame capture at target FPS from the D3D11 backbuffer
  • Minimal overhead via GPU staging textures
  • In-game ImGui overlay with start/stop and live preview
  • Automatic DLL injection via DebugInjector
  • Managed frame queue with debt monitoring
  • PNG output with DirectXTex

Quick start

  1. Windows 10/11 x64, Visual Studio 2022 (C++), vcpkg configured, Scrap Mechanic installed
  2. Open the solution and build (Debug|x64 or Release|x64)
  3. Run the injector (F5) to launch and inject

Usage

  1. Launch the game (overlay appears)
  2. Start/Stop recording
  3. Frames saved to your recording folder

60 FPS tip

For perfectly consistent 60 FPS output, pair with a modified SM-TimeScaleModifier that fixes delta time to 0.016.