Skip to content
shany edited this page Dec 3, 2026 · 3 revisions

Tests

The Tests menu runs hardware test ROMs on SuperSnes9x's Game Boy, Game Boy Color and Super Game Boy core and shows, test by test, whether the emulator does what the real console does. There are two test packs, each with its own window:

Pack Menu entry What it is
Acid Tests → Acid Tests... The GB Emulator Shootout suites (acid2, blargg, mooneye, SameSuite, mealybug and others), plus the screenshots 20 other emulators produced on them
Gambatte Tests → Gambatte Tests... The hardware tests of the Gambatte emulator: over 5,000 timing checks recorded on a real Game Boy Color and Game Boy

The tests run on their own emulator cores in the background, so a game you're playing keeps running while they do. Nothing else in the emulator needs them; they're for checking accuracy.

Installing the packs

The packs are separate downloads, listed under Files to enhance SuperSnes9x on the Home page:

  • acid-tests-pack-0.2.zip
  • gambatte-tests-pack-0.1.zip

Unzip them into a folder named tests next to SuperSnes9x.exe, so you end up with:

SuperSnes9x.exe
tests\acid\manifest.txt
tests\acid\tests\...
tests\acid\baseline\...
tests\gambatte\manifest.txt
tests\gambatte\tests\...
tests\gambatte\baseline\...

The Tests menu appears as soon as one pack is there; an entry whose pack is missing is greyed out. An older acid pack unzipped straight next to the exe (acid\manifest.txt) still works, but pack 0.1 doesn't have the per-revision results described below, so use 0.2.

The test window

Both packs open the same window:

Part What it does
Find Shows only the tests whose name contains the text
Suites, Models, Show Filter the list by suite, by console (DMG, CGB, SGB, SGB2) and by result
Clear Removes all the filters
Revision The Game Boy Color and Game Boy chip revision the tests run on (see Chip revisions)
Run All Runs every test the list shows. Filter first to run only some, for example only the failures
Pause Holds the run; press again to go on
Threads How many tests run at once. Defaults to one per CPU thread
Export... Saves the results as text, JSON or a web page with every screenshot
Save Baseline... Saves this run's screenshots, so later runs can be compared with it
Rescan Reloads the baselines from disk
Diagnosis A tally of how the listed tests compare with every baseline
Boot ROMs Starts each test through the Game Boy / Game Boy Color boot ROM from the BIOS Manager, the way File → Load Game does. Greyed when the BIOS Manager has none

On the right, the picture the test ended on, with < and > to step through the same test's screenshots from the baselines.

The Result column is the verdict:

Result Meaning
PASS The test showed what the real console shows
FAIL It showed something else, or never got there in time. The Detail column says what was expected and what came out
INFO The test only shows information and has nothing to pass, or there's no reference for the chip revision picked
ERROR The test couldn't run (a missing file, for example)

Every other column is a baseline: screenshots from another run, such as another emulator's or one you saved, compared with ours. SAME means the pictures match, DIFF n that n pixels differ, and MISSING that the baseline has no picture for that test. Baselines never change the Result; they only show how ours compares.

Acid Tests

Tests → Acid Tests... runs the GB Emulator Shootout's test ROMs: 291 tests on DMG, CGB and Super Game Boy.

Suite What it checks
acid dmg-acid2, cgb-acid2, cgb-acid-hell: the picture hardware draws
blargg CPU instructions and timing, sound, OAM bugs
mooneye CPU, timer, interrupts, DMA, PPU timing, boot state
samesuite Sound, DMA, palettes (from SameBoy's author)
mealybug Mid-scanline register writes: the PPU's pixel pipeline
daid, ax6, ashiepaws, cpp Various PPU, sound, clock and cartridge tests

A test passes when its screen matches the reference screenshot the suite ships. The pack also holds the shootout's screenshots from 20 other emulators (ares, BGB, mGBA, SameBoy, Gambatte and more), which show up as baseline columns.

  • Super Game Boy tests run on the real Super Game Boy BIOS from the BIOS Manager when Boot ROMs is on.
  • NRx2 glitch suppression follows the setting in Sound settings (shown at the bottom right). A few SameSuite sound tests measure that glitch, so they fail with it turned on: that's expected.

With the default revision (CPU CGB E, Game Boy automatic), SuperSnes9x passes every acid test: CGB 93 / 93, DMG 165 / 165.

Gambatte Tests

Tests → Gambatte Tests... runs the hardware tests of the Gambatte emulator: 5,225 checks (3,352 on Game Boy Color, 1,873 on Game Boy) of the console's timing, down to the single clock cycle: when the screen changes mode, when interrupts arrive, how DMA, timers, the window and sprites behave, what sound does at an exact moment.

Each test's file name says what the screen shows on real hardware (for example _cgb04c_out3 or _dmg08_out0A), some come with a reference picture, and the sound tests check whether the console makes a sound. Gambatte's author recorded all of them on two particular consoles: a Game Boy Color with a CPU CGB C chip and a Game Boy with a DMG-CPU-08 board. So the Gambatte window always runs on those two revisions; its Revision button is fixed. It also runs without a boot ROM, as the suite expects, and keeps the sound chip's NRx2 glitch the way hardware does.

SuperSnes9x passes all of them: 5,225 / 5,225.

The window has no baseline column at first: the pack's pictures are what the tests check against, not screenshots per test. Click Save Baseline... after a good run to get one, and later runs then show SAME or DIFF against it, which catches a change in behaviour between two versions.

The tests come from gambatte-core and are licensed GPL-2.0, like Gambatte; that's why they're a separate download.

Chip revisions

Nintendo changed the Game Boy Color's CPU chip several times (CPU CGB A, B, C, D and E), and some timing details changed between them. A test is a recording of what one particular console did, so the right answer depends on the revision: Gambatte's suite was recorded on a CPU CGB C, the acid suites' references match a CPU CGB E. On a CPU CGB E, 48 of Gambatte's Game Boy Color tests show something different from what the C showed. That's the E behaving like an E, not an error.

The Revision button in the Acid Tests window picks the chips the tests run on:

Choice Notes
Game Boy Color: CPU CGB E (default) The references most suites ship
Game Boy Color: CPU CGB D Like E, with D's own sound and tile-select glitch details
Game Boy Color: CPU CGB C The chip Gambatte's tests come from
Game Boy: automatic (default) / DMG-CPU-08 DMG-CPU-08 is the board Gambatte's DMG tests come from

Some tests have a known different answer on another revision, and the window uses it:

  • mealybug ships reference pictures for CPU CGB C and CPU CGB D, so its 27 tests also run on Game Boy Color with the matching picture. It has no CPU CGB E pictures, so on E those show as INFO.
  • SameSuite's notes say a real CPU CGB D fails channel_1_sweep_restart_2, so on D that test passes when it fails like the hardware does. On CPU CGB C, most of its channel 1, 2 and 4 sound tests fail on real hardware without saying which, so those show as INFO.

Changing the revision clears the results, since they belong to the chip they ran on. Exported reports and the status line name the revision used.

Results with each revision in this version:

Revision Pass Fail Notes
CPU CGB E (default) 93 0 Plus 28 INFO
CPU CGB D 104 9 Mid-scanline details on mealybug's pictures; channel_1_sweep_restart_2 still passes where the D fails
CPU CGB C 59 18 Mid-scanline details on mealybug's pictures

The same revisions are available for playing games: see Game Boy Color.

From the command line

Developers can run both packs without the GUI with the acid_test program built from sgb/tests (make acid_test):

./acid_test ../../tests/acid --model cgb --revision D --txt results.txt
./acid_test ../../tests/gambatte --threads 16 --html report.html

--revision E|C|D and --dmg-revision auto|08 pick the chips for acid; a Gambatte pack always runs on CPU CGB C and DMG-CPU-08. The comment at the top of sgb/tests/acid_test.cpp lists every option.

Clone this wiki locally