Skip to content

Latest commit

 

History

History
953 lines (806 loc) · 56.4 KB

UserGuide.md

File metadata and controls

953 lines (806 loc) · 56.4 KB

5DO User Guide

This guide covers the desktop application and the headless CLI. The emulator does not include a BIOS ROM or any game images; you must supply legally obtained files.

For the complete documentation map, see the documentation index. For every CLI option, see CliReference.md; for settings and paths, see Configuration.md; for save-state details, see SaveStates.md; for symptom-driven fixes, see Troubleshooting.md.

Quick start

  1. Install the .NET 11 runtime from https://dotnet.microsoft.com/download/dotnet/11.0. The release bundles do not include it.

  2. Start the desktop app:

    dotnet run -c Release --project src/FiveDo.Frontend.Avalonia
    # or open a disc directly (also used by file associations):
    dotnet run -c Release --project src/FiveDo.Frontend.Avalonia -- "game.chd"
  3. On first run, choose Open BIOS and select a 3DO BIOS such as panafz1.bin.

  4. Choose Open Disc and select an ISO, BIN, CUE+BIN, CHD, CDI, NRG, MDS/MDX, CloneCD CCD, ZIP/7z, or M3U image. A ZIP/7z may contain one ISO/BIN or one CUE+BIN set; CHD/CDI/NRG/MDS/CCD must be extracted first, and encrypted or multi-volume archives are refused with guidance.

  5. Press Play. The status line shows the frame count, PC, cycles, and FPS. While the BIOS, disc, and renderer initialize, a Loading game... / Please wait... overlay covers the video area and disappears as soon as the first visible frame is presented.

If you choose Open Disc before a BIOS is loaded, 5DO asks for the BIOS first and then continues to the disc picker. The first-run guide is shown only once. About always shows the current BIOS, disc, renderer, machine state, and paths.

On a Steam Deck/gamescope session the first-run guide uses a larger layout with 54 px buttons, the detected BIOS folder, and Scan / Open Folder actions. See Installation.md for the non-Steam-game setup.

BIOS manager and automatic selection

Settings > Paths now edits a BIOS folder, a primary BIOS, an optional BIOS2/Kanji font, and the Auto-select BIOS option. Scan BIOS folder validates every .bin/.rom file and reports primary/secondary/error counts. The scanner recognizes the common Panasonic FZ-1/FZ-10/FZ-10E/FZ-10JA, GoldStar, Sanyo, No-RSA FZ-1J/FZ-10/FZ-10E, Kanji font, and arcade support ROM hashes; unknown images are accepted with file-name-derived metadata.

Allow unsigned discs (Settings > Paths) is an explicit opt-in for unsigned, homebrew, and arcade discs. A recognized No-RSA BIOS is preferred when auto-selection is on; otherwise 5DO patches the documented two media-RSA check sites in the selected retail 1 MB BIOS in memory. The BIOS file is never modified. The status line reports the effective BIOS hash, and save states record that hash, so loading a state with a patched/unpatched BIOS mismatch produces the usual warning. From the CLI, add --allow-unsigned-discs to run or trace; bios select --allow-unsigned-discs prefers a No-RSA image.

When a BIOS folder is set and auto-selection is enabled, 5DO chooses a BIOS from the disc's game database region, known title requirements, and the image's Kanji/Anvil/patch metadata. The configured primary BIOS remains the fallback. Use File > Assign BIOS to Current Game... to pin a specific image to the current game, or Clear Game BIOS Assignment to return it to automatic selection. The status line and log show which BIOS was selected and why.

Japanese font ROMs are BIOS2 images, not bootable BIOSes. The scanner detects the 3DO volume-header signature and classifies 1 MB Kanji fonts as secondary, so a font can no longer be selected as the primary BIOS. Auto-selection pairs the matching FZ-1/FZ-10 font with the primary; for example, WorldCup Super Stadium uses the FZ-10J BIOS plus the FZ-10JA Kanji font ROM.

From the CLI, --bios-auto <folder> performs the same selection for run/trace, and bios list, bios scan, and bios select expose the catalog directly. --bios2 loads an explicit secondary ROM.

File > BIOS / NVRAM Manager... opens a two-tab manager for the same data. The BIOS images tab scans a folder, shows each image's kind, region, MD5, size, and Kanji/Anvil/patch flags, and imports a validated .bin/.rom without overwriting a different image. Use as BIOS1 and Use as BIOS2 / font set the primary and secondary paths; Assign to Current Game pins the selected image's MD5 to the loaded disc, and Clear Game Assignment restores automatic selection. The NVRAM images tab lists shared and per-game images with their version, game title, size, modification time, and validation state. It backs up one image or the whole layout, imports a validated 32 KB image over the selected file, resets an image to a fresh volume, and deletes an image. Reset, delete, and import-overwrite require a second click on the same button, so a single accidental click cannot destroy data.

On-screen notifications and quick menu

The game view shows short colour-coded notifications for state saves and loads, slot changes, rewind, fast-forward, screenshots, resets, and settings changes. Blue is informational, green is success, amber is a warning, and red is an error. Settings > Video controls whether notifications are shown, their corner position, opacity, and duration (500-10000 ms).

Press F4 (the default Quick Menu hotkey) or hold Select+Start on a gamepad to open the quick menu. It pauses the game and offers Resume/Pause, Save State, Load State, Rewind 1 Second, Fast-Forward, Connect/Disconnect Gamegun, Screenshot, Reset, Cheats..., Settings..., Stop Game, and Close. Use Up/Down/Home/End to move, Enter or Space to activate, and F4 or Escape to close. Closing the menu resumes the game only if it was running when the menu opened. Settings > Video can disable the quick menu.

Command-line launch (frontends and file associations)

The desktop executable accepts the following arguments. A positional disc path or --disc opens and auto-starts the game, so no extra Play action is needed. This is the form used by file associations and external emulator frontends:

FiveDo.exe "D:\Games\Road Rash (USA).chd" `
  --bios "D:\BIOS\panafz1.bin" --fullscreen
Argument Meaning
"<disc>" Positional disc path (ISO, BIN, CUE+BIN, CHD, CDI, NRG, MDS/MDX, CloneCD CCD, ZIP, or 7z); opens and auto-starts it.
--disc <path> Explicit disc path; same behavior as the positional form.
--bios <path> BIOS image for this launch; overrides the saved BIOS path. A missing file prints an error and exits with code 1.
-f, -fullscreen, --fullscreen Start in fullscreen. Works with a disc or with the library view. F11 toggles fullscreen; Escape exits fullscreen and pauses a running game.
--gl-backend <mode> auto (default), wgl, angle, software, vulkan, or d3d11. Direct3D is Windows-only.
--gl-probe-backend <mode> Alias for --gl-backend retained for the GPU probe.
--no-update-check Skip the startup GitHub release check for this launch.
--version Print the version and exit.
-h, --help Print frontend usage and exit.

Launcher command template:

FiveDo.exe "{rom}" --bios "{bios}" --fullscreen

Developer/CI options already supported by the frontend:

Argument Meaning
--gl-probe <json> OpenGL presentation probe with --gl-probe-size, --gl-probe-frames, --gl-probe-warmup, --gl-probe-filter, --gl-probe-vsync, --gl-probe-offscreen, --gl-probe-capture, and --gl-probe-timeout.
--vk-probe <json> Headless Vulkan probe with --vk-probe-size, --vk-probe-frames, --vk-probe-warmup, --vk-probe-filter, --vk-probe-capture, and --vk-probe-timeout.
--vk-window-probe <json> Native Vulkan swapchain probe (Win32, or Linux/X11 with DISPLAY set) with the matching --vk-window-probe-* options.
--d3d-probe <json> Headless Direct3D 11 probe with --d3d-probe-size, --d3d-probe-frames, --d3d-probe-warmup, --d3d-probe-filter, --d3d-probe-capture, and --d3d-probe-timeout. Windows only.
--d3d-window-probe <json> Native Win32 Direct3D 11 swapchain probe with the matching --d3d-window-probe-* options. Windows only.
--smoke-test [--smoke-output <path>] Startup smoke test used by CI; exits after the first UI pass.

See Performance.md, Vulkan.md, Direct3D.md, and BuildAndTest.md for the probe reports and commands.

Controls

Default player 1 keyboard bindings:

3DO button Key
D-pad Arrow keys
A Z
B X
C C
L A
R S
P (play/pause) Enter
X (stop) Backspace

Input opens the binding editor. Keyboard bindings can be captured for all six players. The Gamepad tab maps physical controls to 3DO buttons; left-stick directions fall back to the D-pad, and analog triggers fall back to the matching shoulder button when no explicit binding exists. The controller preview draws a 3DO pad beside the tabs: blue outlines mark mapped buttons, amber marks the selected row, and a held key or gamepad control lights its mapped button green.

Supported gamepad backends:

  • Windows: XInput (xinput1_4, xinput1_3, or xinput9_1_0).
  • Linux: evdev (/dev/input/event*; the user normally needs the input group).
  • macOS: IOKit HID (Generic Desktop Joystick, Gamepad, or Multi-axis Controller). macOS may request Input Monitoring permission; without it the frontend falls back to the keyboard.
  • macOS: no platform backend yet; use a keyboard.

Windows/Linux backends hot-plug controllers. The About dialog reports the number of connected controllers.

Input devices

Settings > Emulation > Input devices selects the PBUS device on each of the eight ports: joypad, flightstick, mouse, lightgun, arcade lightgun, Orbatak trackball, or none. Joypads remain the default and keep the historical packet. Selecting an active peripheral, or enabling ports 7-8, switches to the 3DO daisy-chain packet used by Opera; a disabled port left at None does not. Override input devices for this game stores the eight choices by game ID; known lightgun and Orbatak titles are seeded automatically when AutoInputDevices is on, and an explicit override always wins.

Pointer port selects which controller receives the host mouse/lightgun pointer, or All pointer devices to drive every pointer. Pointer calibration applies a 0.5-2.0 scale plus X/Y offsets in native pixels; use it for bezels, overscan, or a window that is not perfectly aligned.

In the game view, the pointer drives every mouse, lightgun, arcade lightgun, or Orbatak trackball port, or only the selected Pointer port. Mouse and trackball motion is relative; lightguns use the absolute pointer position and show a crosshair. Left/right/middle pointer buttons map to the primary, option/coin, and reload/start buttons for the selected device. Changing the device list while a game is running applies on the next frame and clears rewind history. The CLI exposes the same selection with --input-device 1=mouse,3=lightgun and can force the chain layout with --pbus-format opera.

Point-and-shoot titles. For a title that uses the 3DO Gamegun, select Lightgun, not Mouse: the 3DO mouse is a separate point-and-click device, and some titles (including Demolition Man) do not recognize it. The host mouse then aims the gun; left click fires, right click is the Gamegun option/start/calibrate button, and middle click reloads. Retail American Laser Games titles (Crime Patrol, Drug Wars, Mad Dog McCree, Mad Dog II, Space Pirates, The Last Bounty Hunter, Who Shot Johnny Rock, and Corpse Killer) use a joypad on port 1 and a Gamegun on port 2, so the pad still drives menus and non-lightgun sections while the mouse handles shooting. The arcade CD-ROM variants keep the arcade lightgun. Demolition Man is different: its database profile is 1=joypad, because it ignores pad Start/A while a Gamegun is attached during boot, so it starts with the pad only. Press F1 or use Quick Menu > Connect Gamegun after the game is running, then select the lightgun control scheme in the game's OPTIONS > CONTROLS screen if needed. The same manual layout is available from the CLI with --input-device 1=joypad,2=lightgun. There is no separate mouse-mode toggle: selecting Lightgun on a port is the switch that makes the host mouse drive the Gamegun.

The current MADAM PBUS DMA window is 20 bytes, so a chain longer than that is truncated cleanly at the DMA boundary. One peripheral plus joypads fits; avoid stacking several large devices (for example three flightsticks) until the DMA length is widened.

Keyboard shortcuts

  • F5 saves the current state to the selected slot.
  • F8 loads the selected slot.
  • F6 / F7 select the previous / next save-state slot.
  • F9 advances the paused machine by one frame.
  • Shift+F9 rewinds one frame.
  • R rewinds one second.
  • P pauses or resumes emulation.
  • Tab holds fast-forward; release it to return to normal speed.
  • Space toggles fast-forward on or off, matching RetroArch's toggle behavior.
  • F1 connects or disconnects the emulated 3DO Gamegun on the game's lightgun port.
  • F10 resets the machine.
  • F11 toggles fullscreen.
  • Alt+Enter also toggles fullscreen, including from the library and the quick menu.
  • F12 captures a screenshot.
  • F3 swaps to the next disc in an M3U playlist or opens a disc picker; see File > Swap Disc.
  • F2 toggles the input display (frame, lag, skip counters, and the selected controller's buttons) or use View > Input Display. Choose the controller port in Settings > Video > Input display player.
  • Escape pauses emulation; press Escape again while paused to close 5DO. When a running game is fullscreen, the first press leaves fullscreen and pauses together, and the second press closes 5DO. Resuming or stopping emulation, opening the quick menu, or switching away from the window disarms the second press.
  • Save State, Load State, Screenshot, Reset, slot changes, and fullscreen are also available from the toolbar and the Emulation menu.

The hotkey map is part of the input profile. Custom key assignments are resolved case-insensitively; an unbound key falls through to the emulated pad. P is the default Pause binding. Escape remains a system shortcut: it pauses and arms the second-press quit, independent of the configured Pause key.

Rewind and fast-forward

Rewind is on by default. 5DO keeps compressed keyframes and the exact per-frame controller packet for the configured window (60 seconds by default, 30-300 seconds in Settings > Emulation). Press R to step back one second or Shift+F9 to step back one frame. The Emulation menu also exposes Rewind 1 Second and Rewind 1 Frame. Rewinding restores the full machine state and replays the recorded input, so resuming is deterministic. The history is cleared when a state is loaded, the machine is reset, or a different disc starts.

Hold Tab to fast-forward, or tap Space to toggle it on and tap Space again to return to normal speed. The default multiplier is 4x and is configurable from 2x to 10x in Settings > Emulation. The Emulation > Fast-Forward menu item toggles the same mode for pointer-only use. Intermediate frames skip presentation and audio is muted while fast-forwarding; emulation and input are unchanged. Releasing Tab, pausing, stopping, or resetting returns to normal speed.

The default memory cap for compressed keyframes is 256 MB. Older keyframes are dropped first, and at least one keyframe is always retained. Keyframes are compressed on the emulation thread, so a very slow machine may see a brief hitch when one is captured (every 120 frames by default).

Focus behavior

Every time the desktop window loses focus, 5DO releases all held keyboard and PBUS input so a direction or action cannot stay latched in the guest. Settings > Emulation > Pause when the window loses focus additionally pauses a running machine; returning focus resumes it only when the pause was automatic. A manual pause, start, or stop clears that state, so the setting never overrides a deliberate choice.

Cheats

Emulation > Cheats... opens the per-game cheat manager. Each game has a JSON file named after its 4DO ID in the cheat directory (Settings > Paths > Cheats). The manager lists every entry with an enable checkbox; select one to edit its name, description, or code, or use Add, Update, and Delete. Changes are saved immediately, invalid code is shown in red and is not applied, and the running game picks up the new set without a restart.

Cheats are applied before every emulated frame, so they survive save-state loads, rewind, and fast-forward. The engine supports raw byte writes, typed write8/write16/write32 writes, memory conditions, button conditions, and and/or/not combinations. Numbers are hexadecimal by default. See Cheats.md for the complete syntax and CLI commands.

Recording input

Emulation > Record Input starts capturing player-1 controller input while the game runs. Selecting it again stops recording and writes <game>-<timestamp>-input.txt to the configured save-state directory (or the default 5DO directory). Unchanged frames are coalesced into one line per button change, and the file uses the same format as --input-script:

# frame buttons
0 None
120 A
180 A,Down
240 None

Replay a recording headlessly with:

dotnet run --project src/FiveDo.Cli -- run game.chd --bios panafz1.bin `
  --frames 1000 --input-script "path/to/game-20261029-120000-input.txt"

If the recording started after a save state was loaded, add --script-base state so the script's frame numbers are shifted by the loaded frame count.

Input recordings capture the player-1 pad only. To drive a mouse, lightgun, arcade lightgun, or Orbatak trackball in a script, add a pointer token to a line manually: @mouse dx dy [left,middle,right,shift], @lightgun x y [trigger,option,reload,offscreen], @arcadegun x y [trigger,service,coins,start,holster,offscreen], or @trackball dx dy [start1,start2,coin1,coin2,service]. Select the same device with --input-device <port>=<device>; see CliReference.md.

TAS movies

Emulation > Record Movie... captures a deterministic .5domovie file: the exact PBUS packet for every frame, a starting save state, and a metadata header with the game, BIOS, disc, timing options, and final evidence. Emulation > Play Movie... restores the embedded state and replays the movie; the status bar shows the current frame and player-1 buttons, and playback pauses at the end. Emulation > Stop Movie finishes a recording or detaches playback. Stopping emulation or closing the window also saves an active recording.

File > Game Metadata... edits the current disc's offline library metadata (title, developer, publisher, year, genre, regions, players, description) and its manual media attachments. Saving upserts the record in library-metadata.json; Clear Metadata removes it. File > Movie Editor... opens a .5domovie and lists every frame with player-1 buttons. Select a frame, toggle buttons, and Apply; Insert copy after, Delete frame, and Trim after frame edit the timeline, then Save As writes a new movie. The CLI equivalents are movie record, movie play, movie verify, movie info, and movie branch. Verification replays every frame and compares the recorded frame hash, ARM PC, and state hash; it exits with code 2 on a mismatch. Branching keeps a prefix so a new attempt can be recorded from a checkpoint. Movies contain input and a save state, not BIOS or disc content. See Tas.md for the container layout and the full command set.

Lua input scripting and the input timeline. run and movie record accept --input-lua <file.lua>; the hard-sandboxed script calls frame, hold, press, and release (also under input.*) to emit frame-stamped buttons. Emulation > Input Timeline... loads a .5domovie, draws one row per pad button with a playhead, and lets you edit a frame or save the timeline as a plain script. The CLI equivalents are movie timeline export, movie timeline set, and movie timeline apply. Applying a timeline rewrites player 1 and clears the recorded final evidence, so re-verify the new movie. state import-4do and state export-4do convert best-effort 4DO .4dosav states; unsupported fields are reported as warnings.

Multi-disc playlists

Open an .m3u/.m3u8 playlist from File > Boot Disc... (or pass it on the command line) to start its first entry. Blank lines and # comments are ignored; #EXTINF:duration,title sets the display title, and relative paths resolve against the playlist. File > Swap Disc or F3 advances to the next entry without resetting the machine, wrapping at the end. Without a playlist, the same action opens a file picker. The current disc's hash is used for save-state metadata while BIOS, NVRAM, fixes, and cheats stay keyed to the session's original game ID.

File > Playlist Editor... adds, removes, and reorders entries and saves an extended M3U file. Drag one or more disc images or playlists onto the window to import them. When a game ejects the disc, 5DO advances to the next playlist entry automatically by default (ODE-style), or shows an on-screen prompt when no playlist is loaded. Change this with Settings > Audio > Insert the next playlist disc when a game ejects.

5do disc verify game.chd reads every native sector and reports the first read errors, the verified sector count, and a content hash; use it to distinguish a bad dump from an emulator issue. Add --dat path/to/redump.dat to match the native track CRC-32/MD5/SHA-1 against a Redump/No-Intro DAT; a matching dump reports the game/ROM and a mismatch exits 1. 5do disc convert game.chd --out game.iso converts a data-only image to ISO, BIN, CUE, or a flat CHD and verifies the game ID; see CliReference.md. The CLI can list a playlist with disc playlist game.m3u, open its first entry with run --playlist game.m3u, and test a swap with run game.chd --swap-at 1200 --swap-disc disc2.chd.

Netplay (direct IP and online lobby) {#netplay-direct-ip}

Status: the desktop direct-IP and online-lobby host/join flows, the CLI, and the public lobby service are implemented and validated. XGrid has its own netplay client in its repository; recorded cross-emulator sessions, matchmaking, and the reconnect finish race remain.

Netplay connects two 5DO instances directly or through the public lobby. The host is player 1; the join is player 2. Both players must use the same 5DO build, BIOS, disc, and behavior-affecting emulation settings. The host transfers a compressed machine state to the join, so both start from the exact same frame and deterministic state.

Host

  1. Open the disc and BIOS, then start the game.
  2. Choose Netplay > Host Session....
  3. For a direct connection, set the TCP/UDP port (default 5600), select Start hosting, and share the host address and port. For the online lobby, select Use the online lobby, leave the lobby URL at https://lobby.purelogiccode.com, and select Create lobby room; share the six-character room code.
  4. Set the input delay (default 4 frames) and wait timeout. Transport selects automatic punching with relay fallback, forced relay, or direct only.
  5. The session starts when player 2 connects and validates the transferred state. The host closes the lobby room on Stop Session.

Join

  1. Open the same disc and BIOS. Do not start a different game.
  2. Choose Netplay > Join Session....
  3. For a direct connection, enter the host address and port and select Join session. For the online lobby, select Use the online lobby, enter the room code, and select Join lobby room.
  4. The host state is loaded and validated before the first input is applied.

A desktop peer uses its saved emulation settings. A CLI peer must match them; for example, add --high-res when the desktop has High resolution enabled (new desktop settings enable it by default), or pass the same --profile.

The host sets the input delay; the join uses the host's value. Use 2-4 frames on a LAN and 6-10 frames when one-way latency is around 50-100 ms. Netplay > Stop Session ends the session and restores local input. If the link drops, 5DO offers a reconnect: the host sends its current state, and the join resumes from that state (the join's last confirmed frame is included in the request).

During a session

  • Pause, reset, load state, rewind, and fast-forward are disabled; frame skip and run-ahead are forced off so every peer executes every frame.
  • P1 and P2 use the existing player 1/player 2 keyboard and gamepad bindings.
  • The menu shows Stop Session; the status bar shows the role.
  • Direct-IP traffic has no authentication or encryption. The lobby API uses HTTPS and bearer tokens, but relayed game data is not encrypted. Use trusted peers and do not expose the direct port to the public Internet without a VPN or firewall rules you understand.
  • Two players and joypads are supported. Pointer devices, more than two players, matchmaking, and recorded cross-emulator sessions remain out of scope; room persistence is provided by GameLobby.

The CLI exposes the same core for automation and evidence:

5do netplay host game.chd --bios bios/panafz1.bin --port 5600 --frames 3600
5do netplay join 192.168.1.20 game.chd --bios bios/panafz1.bin --port 5600 --frames 3600

Both commands accept --input-script <path> for the local player, --delay <frames>, --reconnect-timeout <seconds>, and --json. See CliReference.md and NetplayProbe.md for the protocol and measured evidence.

Lobby-assisted (CLI)

5do netplay host game.chd --bios bios/panafz1.bin --lobby http://lobby.example.com:8080
5do netplay join X7JTX4 game.chd --bios bios/panafz1.bin --lobby http://lobby.example.com:8080

The host creates a room and prints a join code. The lobby coordinates UDP NAT punching and falls back to an opaque relay when direct traffic is blocked. --lobby-relay forces the relay, --lobby-direct requires punching, and --lobby-timeout sets the fallback deadline. See Lobby.md for the service, Windows VPS install, and the shared XGrid contract.

Desktop acceptance automation adds --netplay-lobby <url>, --netplay-code-out <path>, and --netplay-result <path> to --netplay-host/--netplay-join.

Display

The desktop renderer expands the 3DO palette at native resolution and scales on the GPU. Settings > Emulation > Video region selects NTSC (320x240 at 60 Hz), PAL1 (320x288 at 50 Hz), or PAL2 (384x288 at 50 Hz). PAL needs a European BIOS and applies the next time the machine is created. Choose PAL/NTSC automatically from the BIOS is on by default and switches the running machine when a newly resolved BIOS changes the video standard; the CLI defaults to --region auto, which picks PAL1 when the selected BIOS is a PAL image. Region override in Settings > Emulation pins the current disc to a specific mode, and loading a save state follows the region recorded in that state. Available filters:

  • Accurate: nearest-neighbor, pixel-perfect; the reference for the CPU assembler.
  • Nearest: nearest-neighbor with arbitrary scale/letterboxing.
  • SharpBilinear: the default enhanced mode.
  • Bicubic: Catmull-Rom 4x4 sampling for smooth 3D and full-motion content. It is opt-in and costs 16 texture taps per output pixel.
  • CRT: scanlines, aperture mask, curvature, vignette, and a configurable bloom glow (Settings -> Video -> CRT bloom).
  • ArcadeCrt: a stronger old-television/arcade-monitor look with thicker scanlines, an RGB triad mask, slight phosphor fringing, warm halation, more curvature, and a heavier vignette. It uses the same CRT bloom control.
  • Xbr: Hyllian's xBR-lv2 edge-directed 4x pass, followed by a sharp-bilinear finish. This is an opt-in filter and costs more GPU time at 4K.
  • Hqx / Hqx3x / Hqx4x: HQx 2x/3x/4x pixel-art smoothing as a GPU rule-table pass over the frame, followed by a sharp-bilinear finish. They are opt-in and add a source * scale GPU target; 3x/4x have larger targets but are no longer CPU-bound.
  • Mmpx: MMPX 2x style-preserving pixel-art magnification, followed by a sharp-bilinear finish. It is opt-in and adds a 2x GPU target.
  • FSR: AMD FidelityFX Super Resolution 1.0 (EASU upscale + RCAS sharpening) at the output resolution. It is opt-in and has a FSR sharpness slider in Settings > Video (0 = soft, 1 = maximum). It costs two GPU passes and is not recommended at 4K on weak GPUs.

The Settings dialog's Emulation page can override the filter for the current game. Automatic uses the global filter; an explicit choice is stored by game ID in settings.json.

480i handling (Settings > Video) controls how the two fields of an interlaced title are combined. Auto (the desktop default) detects complementary 480i fields and weaves them into one 480-line image while leaving 240p titles byte-identical to Bob. Bob presents each field as-is, Weave always combines two fields, and Blend averages them into a flicker-free 240-line frame. The mode is presentation-only and is stored in per-game profiles; the CLI defaults to bob so diagnostic frame hashes stay reference-compatible and accepts --deinterlace auto|bob|weave|blend.

Aspect presets (4:3, 5:4, 16:9, 16:10, and 21:9), custom aspect ratio, integer scaling, vsync preference (applied through WGL/GLX/EGL where the platform exposes a swap-interval extension), CRT bloom, FSR sharpness, fullscreen (F11/Escape; the cursor is hidden while fullscreen), and the FPS/status overlay are in Settings > Video. Frame skip controls presentation catch-up: Auto is the default and only drops presentation frames when the host misses its deadline; fixed modes present one of every 2/3/4/5 frames. Emulation, input, audio, and save states still run at full speed in every mode, so this is not fast-forward. Use Auto for normal play; a fixed mode is useful on a slow GPU or when recording. The status overlay shows both the emulated and presented rates. Display refresh (Settings > Video, default 60 Hz) selects the rate used to present the latest frame. 60 Hz keeps render-on-demand; higher values (75/90/120/144/165/240 Hz) re-present the latest frame at that rate, and Match display follows the compositor. The 3DO outputs 60 fields per second (50 for PAL), so a higher rate reduces presentation latency but does not create extra motion; emulation speed, audio, and save states are unchanged. Frame interpolation (off by default) blends the two most recent completed frames for smoother motion. It requires a fixed display rate above 60 Hz and is disabled with VRR; the status bar adds interp while it is active. It keeps the emulated machine, input sampling, audio clock, and hashes at the native rate, but the visible output lags the newest field by up to one field period, and Bob-deinterlaced 480i content can ghost; use Auto/Weave or turn it off for those titles.

The Graphics API list selects OpenGL, DirectX 11 (Windows only), Vulkan, or Software (CPU); changing it recreates the presenter without restarting emulation. Output resolution selects the final presentation size: match the window, native 320x240, 2x/3x/4x, 720p, 1080p, 1440p, or 4K. This is output upscaling, not internal CEL rendering. Overscan crop L/T/R/B (Settings > Video) hides 0-32 pixels from each edge for TVs and captures that show the outer frame; native screenshots use the same crop, and per-game profiles can store their own crop. Auto-crop borders detects blank edges on the presented frame (up to 25% per edge, matching 4DO), waits one second before accepting a larger crop, and is disabled by any manual or per-game crop. Void border draws a 0-64 pixel border in the selected #RRGGBB/#AARRGGBB color around the presented image. The same color fills the letterbox and pillarbox bars inside the OpenGL, GLES, Vulkan, and Direct3D 11 presenters, so a wide or tall window shows the backdrop instead of black. The adjacent pattern selector draws solid, checkerboard, grid, scanline, a 4DO-style blue diagonal gradient, soft bumps, or brushed-metal fills in the same color. The pattern now renders inside the GPU letterbox and pillarbox bars on OpenGL, Vulkan, and Direct3D 11 as well as in the shell border and behind the software presenter; Solid keeps the plain configured color. Crop, border, and auto-crop options change presentation only, not emulation, input, audio, or save states. The renderer falls back to the CPU WriteableBitmap presenter when OpenGL initialization or context recovery fails; the status line and Logs report the reason.

While a game is running and unpaused, 5DO keeps the display and system awake on Windows. Pausing, stopping, a core fault, or exiting releases the request. Linux and macOS compositors may still blank the display during play; that path is best-effort.

Settings > General > UI language selects the shell language: System default follows the host locale when an embedded catalog matches, while Deutsch, English, Español, Français, Italiano, 日本語, 한국어, Português (Brasil), and 简体中文 select a catalog explicitly. The pass translates window titles, menus, labels, tabs, placeholders, and tooltips; data-bound values and dynamic status text are left alone. Changing the language updates the main window immediately, including when switching back to English. Passing --locale <code> to the desktop app overrides the saved setting for one launch, and --list-locales prints the embedded catalogs. The CLI accepts the same two options; JSON output stays in English.

Latency (Settings > Video) adds run-ahead, frame delay, and adaptive sync controls. Run-ahead (0-2 frames, default 0) saves and restores the machine each displayed frame so the latest input reaches the screen sooner; it costs extra CPU and disables rewind and deterministic movies while active. Frame delay (0-8 frames, default 0) deliberately holds the image behind the core, which is useful for matching a high-latency audio path. Adaptive sync (VRR) disables the blocking swap interval and presents each new emulated field without a compositor re-presentation loop, so a VRR display can follow the 3DO field rate instead of staying at its maximum refresh. The monitor, GPU driver, and desktop must already support VRR. The FPS overlay shows the software input-poll-to-frame-submit time as in mean/max ms and the active raN/fdN settings. Audio sync (Settings > Audio, -250 to 250 ms) shifts the host audio stream against video; positive values delay audio and negative values advance it without changing emulated state.

The fresh-install defaults are tuned for 60 fps without lowering quality: OpenGL, match-window output, SharpBilinear, vsync on, integer scaling, and Auto frame skip. If a title still misses 60 fps, use Nearest, a lower output resolution, or turn off expensive filters first. The emulation core is also optimized in Debug builds, so starting the app from the IDE should stay near Release speed.

On Windows, the frontend accepts --gl-backend auto|wgl|angle|software|vulkan|d3d11 to force a renderer backend for troubleshooting or validation. auto is the default (desktop WGL, then ANGLE/GLES, then software). The developer probes use the same option and can capture a 1:1 Accurate frame for CPU/GPU parity; see Performance.md.

5DO checks GitHub's public release feed once at startup (at most every few hours). If a newer version exists, the desktop shell opens a message box with the release page, and the CLI prints the download URL and asks before opening a browser. The check sends no personal data. Turn it off with Settings > Video > Check for updates when 5DO starts, --no-update-check, or FIVEDO_UPDATE_CHECK=0. 5do update --json prints the same information for scripts.

The opt-in Hi-Res mode renders 640x480 CELs and restarts the machine when toggled. It is off by default because 320x240 titles must not be upscaled.

Save states and screenshots

The shell exposes ten numbered slots. Save State and Load State use the selected slot; < and > change slots. Slots lists, saves, loads, and deletes states. Each slot writes slot-NN.tdos, a JSON sidecar, and a PNG thumbnail. Writes are atomic. Large sections are Brotli-compressed, so a state is typically 0.6-2.0 MB on disk (the uncompressed payload is ~10 MB for the stock layout). Version-1 states still load; see SaveStates.md for the format and limits.

Autosave and resume. The shell also keeps one rolling autosave under states/autosave/. It is written when emulation pauses, when the app exits cleanly, and every five minutes while a game is running. Numbered manual slots are never touched. Settings > Emulation > Autosave enables or disables writing, sets the interval (1-60 minutes), and controls Resume the newest autosave at startup. On launch, the last disc is reopened and the autosave is restored only when its disc game ID and effective BIOS MD5 match; a renamed, re-burned, or different disc is refused with an actionable message instead of loading the wrong save. Emulation > Resume Autosave loads it on demand, and Emulation > Delete Autosave removes only the autosave files. RetroAchievements hardcore mode suppresses both autosave writes and restores.

Screenshot writes a PNG named <game>-<timestamp>-f<frames>.png plus a <png>.json sidecar with the renderer, filter, region, crop, border, field handling, and timing profile used for the capture. File > Screenshot Gallery... lists captures with thumbnails, filters by game text and date, and supports open, copy path, export, side-by-side compare (select exactly two), refresh, and delete (the first Delete click asks for confirmation). The selected capture's sidecar summary appears in the status line. File > Record GIF... records emulated frames to an animated GIF at 30 fps and asks for a destination; click it again (or stop emulation) to finish the file. File > Record MP4... records the presented frame and the DSP/CD audio mix as H.264/AAC MP4 at the native 59.94/50 Hz rate; click it again to stop and finalize. MP4 recording uses an external FFmpeg: when it is missing, 5DO offers to download a pinned, SHA-256-verified FFmpeg build and save it beside 5DO (or in the user data tools/ folder when the app folder is read-only). You can also run Configuration > Install FFmpeg, install it on PATH, set FIVEDO_FFMPEG, or place ffmpeg/ffmpeg.exe beside 5DO. The recorder prefers libx264, then a platform H.264 encoder, and falls back to FFmpeg's mpeg4 encoder; audio is 44.1 kHz stereo AAC. Choose Low, Medium, or High under Settings > Video > MP4 quality (the default is Medium); the CLI equivalent is --record-quality. Pause suspends capture (the gap is omitted), while fast-forward and rewind stop the recording so audio and video never desynchronize. A disc swap keeps recording only when the region/field rate is unchanged; a PAL/NTSC change stops it. Saving Settings during a recording keeps frame skip off. MKV output is not exposed yet. The gallery writes from the OpenGL output (or the CPU frame when GL is unavailable). Enable Also save the native CPU frame with screenshots in Settings > Video to write a second -native.png image from the CPU frame assembler. The default directory is your Pictures folder; change it in Settings > Paths.

Library and settings

Library scans the folders configured in Settings > Paths > Game folders for ISO/BIN/CUE/CHD/CDI/NRG/MDS/CCD files plus ZIP/7z containers and resolves titles through the embedded 4DO game database. A ZIP/7z entry is decompressed in memory (1.5 GB per-entry limit); choose one image or a CUE+BIN set per archive. Encrypted and multi-volume archives are refused with an actionable message. Type or paste a folder path and click Add (or press Enter), or use Browse.... Multiple paths can be pasted at once when separated by semicolons. Remove stops scanning the selected folder. The same folders can be added from File > Add Game Folder.... Select a title to open it. A sibling image with the same base name (for example game.png beside game.chd) is shown as cover art. Scanning is recursive to depth 4. Discs are listed immediately; game IDs and database titles are resolved in the background. Later scans reuse library-cache.json and only reopen files whose size or timestamp changed. Cover images are indexed once per folder instead of being probed for every disc, so the list appears quickly even with a large cover collection.

Settings > Covers enables the optional online cover catalog. Known discs use a precomputed 4DO game-ID lookup; other titles use exact, annotation-stripped, token, subtitle, and Jaro-Winkler matching. The default threshold is 0.85. Covers download in the background after a scan and are cached under %LOCALAPPDATA%\5DO\covers (or beside the executable in portable mode). Configuration > Cover Art can refresh the catalog, download missing covers, download the full ~27 MB pack, or clear the cache. Local covers still take precedence when they match, and the library works offline with cached covers. See CoverArt.md for hosting, the catalog format, and the takedown policy.

Each disc is identified by a game ID: the MD5 of its first two 2048-byte data sectors, the same identifier used by 4DO's game database. Renaming a disc or keeping GoodTools and Redump/No-Intro copies of the same release does not create a second game, because the ID comes from the disc contents. The library shows one entry per game ID by default and displays the image count, for example 653 games · 1,366 images. To list every file instead, enable Settings > Paths > Show duplicate disc images.

Use the star button on a card or list row to mark a favorite. The filter selector switches between All games, Favorites, Played, and Unplayed; the sort selector orders by title, recently played, most played, release year, or publisher. The grid opens with the first 30 games and a Load more footer; each additional page adds up to 100 rows without changing the search, filter, or sort order. Cached entries are shown before the background folder scan completes, so a large or remote library does not leave the window blank while it is enumerated. The Icon size slider resizes the cover cards from 128 to 384 pixels, and the chosen size is remembered between sessions. The library records play time while emulation is running and flushes it every minute to library-state.json, so a crash loses at most about a minute. Launch counts and last-played timestamps are stored in the same file.

The 4DO database supplies title, release year, publisher, and region. For additional facts, point Settings > Paths > Library metadata at a JSON file (default library-metadata.json in the 5DO settings folder). Records can match by GameId, by full Path, or both and may set Title, Developer, Publisher, ReleaseYear, Genre, Regions, Players, and Description. The file is read at library refresh time and works completely offline; see Configuration.md for the schema.

File > Verify Library Discs... reads every library image and checks it against a Redump/No-Intro DAT. If no DAT is configured, the command asks for one; cancel to check readability only. A Known dump badge means every track matched, Not in DAT means the image is readable but did not match, and Read error means at least one sector or track could not be read. Results are cached in library-health.json and invalidated automatically when an image's size or timestamp changes. The Game Library window exposes the same check as Verify Health and DAT....

File > Disc Browser... mounts the current disc's Opera file system without stopping emulation. The list is sorted directories-first and shows each entry's depth, size, and LBA. Extract Selected... writes a file or directory, Extract All... writes the whole disc, and Open Folder opens the last destination. Names with a grouping slash (hot/cold.cel) are shown as recorded and become hot_cold.cel on disk; a name repeated in one directory gets a (2), (3) suffix before the extension so both entries are kept. Extraction sanitizes names for Windows/Linux/macOS and refuses to write outside the chosen folder. File > Disc Info... shows the volume label and comment, full two-sector MD5, sector count, file/directory totals, the 4DO database title/region/publisher/year, and the automatic fix mask. The browser is read-only; it never modifies the image.

Settings persist under the user local application data folder:

  • Windows: %LOCALAPPDATA%\5DO\settings.json
  • Linux/macOS: the equivalent local application data directory.
  • Library metadata cache: %LOCALAPPDATA%\5DO\library-cache.json.
  • Library disc-health cache: %LOCALAPPDATA%\5DO\library-health.json.

For a USB stick or self-contained folder, place an empty portable.flag next to the executable or start with --portable. Settings, NVRAM, save states, cheats, library state, and logs then stay beside the executable. FIVEDO_DATA_DIR selects an explicit data folder for separate instances. --config-profile <name> (or FIVEDO_PROFILE) uses profiles/<name>/ under the data directory for an isolated named configuration; 5do settings profiles lists them. Settings > Paths selects a profile, sets it as the next-launch default (default-profile.txt), creates a profile from the current settings, opens the profiles folder, and imports/exports settings JSON. The desktop takes an exclusive lock on the data directory, so a second window using the same profile reports the owning process and exits; start it with --config-profile or FIVEDO_DATA_DIR for an isolated second instance. FIVEDO_ALLOW_MULTIPLE=1 bypasses the lock for automation.

  • Library favorites/play time: %LOCALAPPDATA%\5DO\library-state.json.
  • Optional offline library metadata: %LOCALAPPDATA%\5DO\library-metadata.json.

Settings > Emulation > Game profile saves the current timing, CPU clock, region, CD-DA, BIOS, fix, filter, high-resolution, input-device, and NVRAM choices for the disc, or imports/exports the profile as JSON. A stored profile is applied the next time the machine is created; the dialog states when a restart is required. Changing the CPU clock multiplier for the running machine applies at the next frame boundary without recreating it; a post-switch save state is deterministic and stock-speed runs are unchanged. Per-game fix-mode overrides, automatic 4DO fixes, audio enable/volume, high-resolution mode, the timing profile, ARM/CLIO/CEL/CD timing, CD speed, NVRAM storage/version, save/screenshot paths, input bindings, and the current slot are stored there. NVRAM defaults to nvram.ram in the same directory. Choose Settings > Emulation > NVRAM storage > Per game to keep each title's save data in nvram/per-game/<gameId>.<version>.ram, or pick a version 0-9 for independent save slots. The first per-game save copies the shared image so existing data is not lost. File > Export NVRAM..., Import NVRAM..., and Reset NVRAM manage the current image from the desktop shell; File > BIOS / NVRAM Manager... adds a layout-wide list, per-image backup, import, reset, and delete, and a Backup All... action that preserves the shared/per-game folder structure. The CLI can list, export, import, and reset images with nvram path|list|export|import|reset. The full settings.json schema, per-game override keys, input profile format, and precedence rules are in Configuration.md.

The game library also shows a compact donation banner. Donate opens the 5DO donation page, and I already donated asks for the email used on the website and checks it through the donation API. The email is stored only in the local settings file and is sent only when checking a donation. A confirmed donation hides the banner; the close button hides it until the next launch. The same actions are available under Help > Donation Status... and Help > Support 5DO....

Support bundles

Help > Save Diagnostics Bundle... writes a zip with the current save state, frame, logs, sanitized settings, and environment details. Use it when reporting a bug; paths and the account name are replaced with placeholders. The CLI equivalent is 5do diagnostics bundle --out support.zip.

Audio

The desktop app ships the OpenAL Soft 1.23.1 runtime, so live stereo output works without a system OpenAL installation. Use Settings > Audio to enable/disable audio, choose the output device, set a 20-500 ms buffer target, set the output volume, set the CD-DA mix level, mute CD-DA, swap the left and right channels, and play a 1 s 440 Hz test tone; the test reports the OpenAL error when no playback device is available. Swap left and right audio channels exchanges the channels of the live output only: audio recordings, the audio hash, frame hashes, and save states keep the emulated channel order, and the setting applies while a game is running. Device and buffer changes recreate only the host audio output, so the game keeps running. If no device is present, the app logs a warning and continues silently; the emulated DSP still runs so games do not stall. Refresh rescans devices after plugging in a headset.

CD-DA applies only while the disc is playing an audio track through PLAY_AUDIO. Most 3DO software reads audio sectors through READ_DATA and feeds the DSP itself. The volume and mute values are stored in settings.json and in the CD save-state section.

The core produces exactly 44,100 stereo samples per emulated second, and the dedicated core thread paces frames against that clock (falling back to 60 Hz when no samples are available). The optional FPS overlay shows measured/target fps.

File > Record Audio... records the same 44.1 kHz DSP and CD-DA mix to a WAV file while live output continues; click it again (or stop emulation) to finalize the file. The CLI can write WAV files with --audio wav --wav-out <path> or play live with --audio openal --volume 0.5 --audio-device "<name>" --audio-buffer 50. 5do audio devices lists the OpenAL playback devices. Add --realtime to pace a CLI run at the audio clock; without it, the CLI runs as fast as possible and live audio is a short burst. Use --cd-volume 0..1 and --mute-cd to control the CD-DA mix independently.

To inspect a capture:

dotnet run --project src/FiveDo.Cli -- audio analyze capture.wav --json

The report includes sample rate, channels, duration, peak, RMS, clipped/silent frames, and DC offset. run --json includes the same statistics for WAV captures and OpenAL dropped/underrun/queued/buffered counters plus estimated latency.

Audio diagnostics tap

Set FIVEDO_AUDIO_TAP to a path prefix before launching the CLI with --audio openal or the desktop app (which uses OpenAL when audio is enabled) to record the exact PCM handed to OpenAL and a per-buffer timing log:

$env:FIVEDO_AUDIO_TAP = "$PWD\artifacts\tap"
dotnet run --project src/FiveDo.Frontend.Avalonia

This writes tap.wav (the signal the emulator queued, before the driver and any Bluetooth link) and tap.csv (elapsed time, buffer size, ring/queue depth, underrun flag, peak, and OpenAL error per buffer). Comparing tap.wav with a loopback recording of the output device separates emulator defects from driver, Bluetooth, and speaker problems. The status overlay also shows a live peak meter and the ring/queue/underrun/drop counters.

Logs

Logs shows the in-memory Serilog log with level, category, search, auto-refresh, and clear controls. The log records BIOS/disc loads, renderer initialization and fallback, save/load, screenshots, input changes, and emulation faults.

Both apps also write rolling daily files (seven retained):

  • Windows: %LOCALAPPDATA%\5DO\logs\5do-YYYYMMDD.log
  • macOS: ~/Library/Logs/5DO/
  • Linux: $XDG_STATE_HOME/5DO/logs or ~/.local/state/5DO/logs

Set FIVEDO_LOG_DIR to redirect the files. Warning-or-higher events are also sent asynchronously to the bug-report service with environment, error, and exception details; submissions are deduplicated for five minutes and capped at ten per minute. Set FIVEDO_BUG_REPORTS=0 to disable submission. CI and test runs disable it automatically, and the CLI keeps JSON on stdout with concise errors on stderr.

Usage statistics

On launch, 5DO sends the application id (5do) and version to the ApplicationStats service so the project can track usage. No user, machine, or game data is sent. Set FIVEDO_STATS=0 to opt out; CI and test runs are disabled automatically. Override the endpoint, key, or id with FIVEDO_STATS_ENDPOINT, FIVEDO_STATS_API_KEY, and FIVEDO_STATS_APPLICATION_ID.

CLI

Common commands:

dotnet run -c Release --project src/FiveDo.Cli -- run game.chd --bios panafz1.bin --frames 600 --frame-out frame.png
dotnet run -c Release --project src/FiveDo.Cli -- run game.chd --bios panafz1.bin --frames 600 --prefetch --high-res
dotnet run -c Release --project src/FiveDo.Cli -- info game.chd --json
dotnet run -c Release --project src/FiveDo.Cli -- bios info panafz1.bin
dotnet run -c Release --project src/FiveDo.Cli -- bios scan bios --json
dotnet run -c Release --project src/FiveDo.Cli -- run game.chd --bios-auto bios --frames 600
dotnet run -c Release --project src/FiveDo.Cli -- state inspect quick.tdos
dotnet run -c Release --project src/FiveDo.Cli -- bench --frames 600
dotnet run -c Release --project src/FiveDo.Cli -- selftest

Audio backends: --audio null|wav|openal, --wav-out, --volume, --realtime. Diagnostics: --watch-lowmem, --dump-ram, --dump-dsp, --trace-frames, --poke, --capture-dir, --capture-every, --input-script, and --autopilot road. See CliReference.md for the full command/option/JSON reference and Diagnostics.md for trace formats; TestCorpus.md has the local corpus commands and script format.

Input scripts use absolute emulated frame numbers by default. When a run starts from --state-in, the first executed frame is the state's saved frame count, so a script that starts at 0 applies its last entry immediately. Add --script-base state to shift the whole script by the loaded state's frame count; for example, 0 A then applies on the first frame after the state loads. run --json reports cdStatus and cdPoll; a static READ_ID-only wait shows cdStatus=0xE1 and cdPoll=0x0C.

Troubleshooting

  • "Load a BIOS first": open a BIOS before pressing Play, or set a BIOS folder with auto-selection enabled. Check the scan result if the folder contains renamed dumps.
  • Disc error: verify the image is a 3DO disc and that the BIOS is compatible. CHD must be a CD image, not a DVD/HDD/raw image.
  • OpenGL unavailable: update the GPU driver. The CPU fallback still runs; check Logs for the exact initialization error.
  • No gamepad input: check that the controller is connected before starting the emulator, and review the Gamepad tab in Input. Linux users may need the input group.
  • Save state rejected: states are tied to a BIOS/disc hash; the loader warns on a BIOS or emulator-version mismatch but still loads when possible. A different disc is recorded in the header but not rejected, so verify the slot metadata. See SaveStates.md.
  • xBR/HQx/MMPX/FSR is slow: use SharpBilinear or Accurate at 4K, or lower the output resolution. HQx is a GPU pass now; FSR and the larger HQx targets are the most expensive opt-in modes on weak GPUs.

For a full symptom-by-symptom guide, see Troubleshooting.md. For traces, dumps, and probes, see Diagnostics.md.

Legal

5DO is distributed under the FreeDO modified GNU LGPL; see LICENSE. FreeDO/4DO are not standard OSI-licensed projects. Read THIRD-PARTY-NOTICES.md and Licensing.md before distributing builds. "3DO" and "Panasonic" are trademarks of their respective owners; this project is not affiliated with or endorsed by them.