Skip to content

Use an offbuffer for the CI screenshot tests - #2751

Merged
riccardobl merged 10 commits into
jMonkeyEngine:masterfrom
richardTingle:screenshots-offbuffer
May 9, 2026
Merged

Use an offbuffer for the CI screenshot tests#2751
riccardobl merged 10 commits into
jMonkeyEngine:masterfrom
richardTingle:screenshots-offbuffer

Conversation

@richardTingle

Copy link
Copy Markdown
Member

This uses a separate (manually created) frame buffer rather than the screen itself. This is to help android (and possibly Vulcan) continue to work with the CI screenshot tests.

This also changes to an explicitly named screenshot filename avoiding the "figuring out which screenshot is which" that was previously required

@richardTingle richardTingle changed the title Screenshots offbuffer Use an offbuffer for the CI screenshot tests May 9, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the screenshot testing framework by replacing ScreenshotNoInputAppState with OffScreenshotAppState, which captures screenshots from a FrameBuffer. It introduces ScenarioScreenshotRecorder to manage screenshot paths and updates the comparison logic to allow for negligible pixel differences. Review feedback identifies a logic error in the scenario comparison loop, a resource leak due to an unclosed FileOutputStream, and performance inefficiencies in the pixel-by-pixel comparison method.

richardTingle and others added 4 commits May 9, 2026 19:56
…ottests/testframework/TestDriver.java


Correct to actually compare the scenario with the prime

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@riccardobl
riccardobl merged commit 606fb03 into jMonkeyEngine:master May 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants