RTCapture - Capture render targets and screenshots as PNG or JPEG

Again, @morgerion has released another useful native extension for Defold:

RTCapture - allows you to capture screenshots and individual render targets and save them as PNG or JPEG images.

Unlike traditional screenshot solutions, RTCapture can capture any render target, not just the final game screen. This makes it particularly useful for generating save game thumbnails, level previews, sharing screenshots, and other features where you need to capture specific parts of your game.

Key features:

  • Render target capture - capture individual render targets or the entire game screen.

  • PNG and JPEG support - save images directly to files or keep them in memory.

  • Cropping and downscaling - capture specific regions and resize images to reduce file sizes.

  • Asynchronous and synchronous capture - choose the approach that best fits your workflow.

  • Performance optimizations - split pixel capture and image encoding across two frames to reduce noticeable frame hitches.

  • JPEG decoding - load JPEG images back into Defold textures.

  • Cross-platform graphics API - built using DMSDK without direct OpenGL, DirectX, or Vulkan dependencies.

The extension requires Defold 1.14.0 or newer and includes documentation, usage examples, performance benchmarks, and a test project.

Morgerion also reports that capturing a smaller 512×288 render target instead of the full screen was approximately 10 times faster, so consider reducing the size, if it’s not crucial.

GitHub:

Huge thanks for developing and sharing another useful extension with the Defold community! :heart:

Also listed in our Asset Portal:

5 Likes