Skip to content

Add JPG/PNG Screenshot with no stalls #1555

Description

@L3-M

Create a new screenshot function that doesn’t freeze the game. Currently, taking a screenshot (F12 for BMP) causes a pause and can even crash in windowed mode. GenTool addressed this by adding a JPG/PNG screenshot on F11, which saves a compressed image without causing the game to stall.

Creating a bmp image with F12 will cause a crash in windowed mode when the window hits the border of the desktop.

Activity

  1. added
    EnhancementIs new feature or request
    GenToolRelates to GenTool
    MinorSeverity: Minor < Major < Critical < Blocker
    on Sep 8, 2025
  2. added theissue type on Sep 8, 2025
  3. xezon commented on Sep 23, 2025

    @xezon

    I also noticed that the original F12 screenshot cannot be taken during the loading screen, which may be a key input issue.

  4. mrtnptrs commented on Oct 11, 2025

    @mrtnptrs

    GeneralsOnline implemented this feature (JPEG) in its last update in a threaded manner that should not hamper performance or result in stalls; perhaps its implementation could be borrowed from. See the following commits:

  5. xezon commented on Oct 12, 2025

    @xezon

    For GenTool I used the CxImage library to export (and modify) JPG and PNG images. It is simple to use.

    https://www.codeproject.com/articles/CxImage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIs new feature or requestGenToolRelates to GenToolMinorSeverity: Minor < Major < Critical < Blocker

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions