erings

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: GPL-3.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

erings

A Sega Saturn emulator.

erings is a work in progress. Pretty much all of the console's major internal hardware components are implemented to some extent. Many games run and a number of them at full speed. However, there are still plenty bugs to find.

The focus of erings is to play the majority of officially licensed games while focusing on the user experience. This is not intended to be a perfect emulator of every aspect of the Saturn. Some features and components are purposely not supported and never will be. It might be better to think of this as a Saturn game player than a digital Saturn console.

This is a gaming first emulator and not intended as game development tool. You won't find an integrated debugger you can step through. You won't find any kind of editor. The only development tools are intended for helping debug the emulator itself.

What you will find is a clean UI allowing you organize and play games. With a controller first navigation system. Make erings full screen, sit back and have fun playing some amazing classic games.

Screenshots


Library (icon)
Library (list)
Game details
Bulk Slash (4x)
Panzer Dragoon Zwei (4x)
Waku Waku 7

Current State and Major Features

  • Runs through the eblitui desktop UI
  • RetroAchievements
  • RuMbLe support for various games
  • NTSC and PAL regions
  • A 4MB extended RAM cartridge
  • Two player digital controllers with per controller configuration profiles
  • Internal backup RAM (console saves) persists between sessions
  • Save states
  • MPEG card
  • Internal resolution upscaling

BIOS region patching is supported. Meaning you can use a US BIOS to play Japanese games or a Japanese BIOS to play US games. Or just use the HLE BIOS and not worry about it.

Rendering

Frames are rendered on the host GPU by default. The VDP1 and VDP2 pixel pipelines are written once and run either as ordinary Go on the CPU or as compute shaders on the GPU, so both renderers produce the same output. The GPU backend is selected by platform.

Platform Backend
macOS Metal
Windows Direct3D 12
Linux Vulkan 1.3

The GPU renderer needs a hardware device. Software implementations of a GPU (such as WARP or lavapipe) are not used. When no usable device is found, or the device fails while a game is running, rendering falls back to the CPU software renderer for the rest of the session.

The internal resolution option renders at a multiple of the Saturn's native resolution (1x through 16x) on either renderer. Higher scales cost more memory and render time.

Disc formats

Several disc image formats are supported

  • chd
  • cue (tracks must have .bin extension)

BIOS

A Saturn BIOS image (USA or Japan) is optional. Without one, a built-in HLE (high-level emulation) BIOS boots the game. A real BIOS is not included with the emulator and needs to be user sourced.

Building

Build the desktop binary with make: make. This provides a binary that can be run locally on the command line. This produces a debug build. Release builds are created when building OS packages.

Packages

Proper OS specific packages can be built using make targets.

  • windows
  • macos
  • appimage

All builds are put into the ./build directory.

UI Controls

Game controls (D-pad, buttons) are configured in the UI's input settings.

Key Action
Escape Open / close the pause menu (also Select on a gamepad)
Tab Toggle the achievement overlay
~ Performance metrics overlay
R (hold) Rewind while held
F1 Save state to the current slot
F2 Next save state slot
Shift + F2 Previous save state slot
F3 Load state from the current slot
F4 Cycle turbo speed (Off, 2x, 3x)
F11 Toggle fullscreen
F12 Screenshot

Won't be Supported

  • ROM cartridges
  • HDTV mode (TVM=100)
  • 31 kHz exclusive monitor mode
  • Peripherals (light gun, mouse, racing wheel, keyboard, etc.)

Planned

  • Disc swapping for multi-disc games
    • Right now you have to rely on the game saving, exiting the game and selecting the next game from the ui
  • Various graphical enhancements
  • Possible performance enhancements
  • Bug fixes
  • Better game compatibility

Game Compatibility

Compatibility is not formally tracked yet. Some games play, some don't. Some play well, some don't.

Documentation

Index

Constants

View Source
const (
	Name = "erings"
)

Variables

View Source
var Version = defaultVersion

Version is the version reported to the UI. It may be overridden at link time with -ldflags "-X github.com/user-none/erings.Version=...". When it is not overridden, init resolves it from the git archive substitution.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package adapter exposes the erings Saturn core through the eblitui coreif interfaces so it can run under the eblitui desktop UI.
Package adapter exposes the erings Saturn core through the eblitui coreif interfaces so it can run under the eblitui desktop UI.
cmd
desktop command
Command saturn-ui runs the erings Saturn core under the eblitui desktop UI.
Command saturn-ui runs the erings Saturn core under the eblitui desktop UI.
sh2
internal
debugserver
Package debugserver implements the emulator debug server.
Package debugserver implements the emulator debug server.
debugserver/responses
Package responses holds the shared data types of the debug server's JSON responses: the server serializes them as the data field of its response envelopes and the debugger client decodes them.
Package responses holds the shared data types of the debug server's JSON responses: the server serializes them as the data field of its response envelopes and the debugger client decodes them.
hostgpu
Package hostgpu is the host side of the GPU renderer: it takes the compute packages' source, compiles it to the compute IR, and has the platform's backend lower the IR to its compute shaders and build them into pipelines.
Package hostgpu is the host side of the GPU renderer: it takes the compute packages' source, compiles it to the compute IR, and has the platform's backend lower the IR to its compute shaders and build them into pipelines.
hostgpu/backend
Package backend opens the platform's backend and builds the compute sources on it.
Package backend opens the platform's backend and builds the compute sources on it.
hostgpu/compile/msl
Package msl emits Metal Shading Language source from the compute IR.
Package msl emits Metal Shading Language source from the compute IR.
hostgpu/conformance
Package conformance runs the conformance functions of core/compute/conformance: their Go execution over fixed test vectors under the entry wrapper contract is the reference, and a backend passes when its emitted entry points produce the same output and byte buffer contents bit for bit.
Package conformance runs the conformance functions of core/compute/conformance: their Go execution over fixed test vectors under the entry wrapper contract is the reference, and a backend passes when its emitted entry points produce the same output and byte buffer contents bit for bit.
hostgpu/devicetest
Package devicetest holds the device tests every backend runs on its own opened device, written once over the hostgpu interfaces.
Package devicetest holds the device tests every backend runs on its own opened device, written once over the hostgpu interfaces.
replay
Package replay defines the on-disk format for recorded play sessions along with a recorder that captures per-frame controller input and screenshot markers and a player that reproduces them.
Package replay defines the on-disk format for recorded play sessions along with a recorder that captures per-frame controller input and screenshot markers and a player that reproduces them.
statedump
Package statedump explodes serialized save states into per-field binaries for offline inspection.
Package statedump explodes serialized save states into per-field binaries for offline inspection.
utils
capture command
Command capture replays a recorded session against a disc with no display, running as fast as possible, and writes framebuffer screenshots plus a capture log with per-window frame stats for regression comparison.
Command capture replays a recorded session against a disc with no display, running as fast as possible, and writes framebuffer screenshots plus a capture log with per-window frame stats for regression comparison.
debugger command
The debugger renders the state served by a debug server over TCP.
The debugger renders the state served by a debug server over TCP.
debugger/client
Package client implements the debugger's connection to a debug server.
Package client implements the debugger's connection to a debug server.
debugger/ui
Package ui holds the debugger's ebitenui styling and shared widget constructors.
Package ui holds the debugger's ebitenui styling and shared widget constructors.
debugger/ui/logbuf
Package logbuf holds the log line store with its selection state.
Package logbuf holds the log line store with its selection state.
dev_runner command
disasm command
dxil_gen command
Command dxil_gen compiles the compute packages to signed DXIL for the DX12 backend: it lowers the renderer's compute sources and the conformance sources, emits one HLSL source per entry point into the build tree, runs the DirectX Shader Compiler on each, and writes the blobs into the dxil directory of the dx12 package, which every Windows build embeds.
Command dxil_gen compiles the compute packages to signed DXIL for the DX12 backend: it lowers the renderer's compute sources and the conformance sources, emits one HLSL source per entry point into the build tree, runs the DirectX Shader Compiler on each, and writes the blobs into the dxil directory of the dx12 package, which every Windows build embeds.
extract_bioslibs command
Command extract_bioslibs extracts and decompresses the compressed bodies stored inside the US Sega Saturn BIOS:
Command extract_bioslibs extracts and decompresses the compressed bodies stored inside the US Sega Saturn BIOS:
m68kdisasm command
Command m68kdisasm disassembles MC68000 code from a flat binary file.
Command m68kdisasm disassembles MC68000 code from a flat binary file.
statedump command
Command statedump explodes a save state file into a directory of per-field binaries without running the emulator: a header.txt with the decoded header and one <field>.bin per chunk field under a subdirectory named after the chunk tag.
Command statedump explodes a save state file into a directory of per-field binaries without running the emulator: a header.txt with the decoded header and one <field>.bin per chunk field under a subdirectory named after the chunk tag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL