Difference between revisions of "RetroArch"

From Emulation General Wiki
Jump to navigation Jump to search
(Undo revision 46167 by Seether (talk) Reason: developers are relevant to their projects)
(Tag: Undo)
m (Cleaning)
(2 intermediate revisions by 2 users not shown)
Line 18: Line 18:
 
==Downloads==
 
==Downloads==
 
Note: Some libretro cores are maintained separately from their originators, and thus possess a different update timeline.
 
Note: Some libretro cores are maintained separately from their originators, and thus possess a different update timeline.
 
 
*[https://buildbot.libretro.com/stable/ RetroArch Stable Builds]
 
*[https://buildbot.libretro.com/stable/ RetroArch Stable Builds]
 
*[https://buildbot.libretro.com/nightly/ RetroArch Nightly Builds]
 
*[https://buildbot.libretro.com/nightly/ RetroArch Nightly Builds]
Line 90: Line 89:
  
 
==Controversies==
 
==Controversies==
A number of controversies has sparkled during the development of RetroArch, mostly due to Squarepusher/TwinAphex attitude and actions towards upstream emulators. As a result, DuckStation and Reicast development has halted. <ref>https://web.archive.org/web/20220201223114/https://old.reddit.com/r/emulation/comments/s8poim/pcsx2_qt_still_needs_to_be_split_up_into_parts/htkalk1//</ref> <ref>https://github.com/skmp/reicast-emulator/issues/1928</ref>
+
A number of controversies have sparked during the development of RetroArch, mostly due to Squarepusher/TwinAphex's attitude and actions towards upstream emulators. As a result, DuckStation and Reicast development has halted<ref>https://web.archive.org/web/20220201223114/https://old.reddit.com/r/emulation/comments/s8poim/pcsx2_qt_still_needs_to_be_split_up_into_parts/htkalk1//</ref><ref>https://github.com/skmp/reicast-emulator/issues/1928</ref>.
You can read more about this [https://retroarchleaks.wordpress.com/ here].
 
  
 
==External links==
 
==External links==

Revision as of 20:52, 5 October 2022

RetroArch
Retroarch.png
Developer(s) Squarepusher, themaister, others
Latest version 1.18.0 [+]
Active Yes
Platform(s) Windows
macOS
Linux
Haiku
Android
iOS (jailbroken)
Raspberry Pi
Pandora
Pyra
PlayStation 2
PlayStation 3
PlayStation 4 (Unofficial)
PlayStation Portable
PlayStation Vita/TV
Xbox
Xbox 360
Xbox One
GameCube
Wii
Wii U
Nintendo Switch
Nintendo 3DS
GCW Zero (Unofficial)
OpenDingux
BlackBerry
Steam Link
Type libretro frontend
Programmed in C, C++
Website libretro.com
Support ($) Patreon, Donate
License GNU GPLv3
Source code GitHub

RetroArch (formerly SSNES) is an open-source, multi-platform libretro frontend written in C or C++. It is designed to be fast, lightweight, and portable.

Downloads

Note: Some libretro cores are maintained separately from their originators, and thus possess a different update timeline.

Mobile/Console Versions

Supported Systems

Main article: libretro#Cores

Features

  • Consistency across multiple platforms, using the same UI structure and a fully featured command line interface.
  • Gamepad controlled menu system with multiple styles available, such as XMB or Material UI. (There's also a QT-based 'WIMP' desktop-style interface for PC platforms that was announced before and released in version 1.7.3.)
  • Gamepad auto-configuration profiles, so that gamepads are mapped automatically when connected. XInput controller autoconfig is built into the application, with other controller types available as external profiles.
  • Per-core and per-game configuration overrides
  • Custom resolution and refresh rate for video output, with exclusive fullscreen mode and monitor index for multi-monitor setups.
  • Dynamic rate control for smooth audio and video, even when the game's output rate is different from your system. Especially obvious with systems like GBA that do not run 60Hz.
  • Basic fast forward, SRAM saving, savestate, etc. It supports serialization of the emulation state which is used to provide real-time rewind and netplay.
  • Pixel shaders, primarily using Cg and GLSL, with HLSL on Xbox 360. The shader format it uses is flexible and fairly easy to use, allowing for complex multi-pass effects with adjustable runtime parameters. Also supports traditional video filter plugins that are run in software.
  • Supports audio DSP filter plugins through .dsp configuration files.
  • Custom overlay support.
  • FFmpeg recording and playback support. It can record either the native resolution output of the core or the post-processed output of the frontend. Playback is handled through an internal FFmpeg libretro core.
  • Streaming support. By adding your twitch account to RetroArch and making some small setup, it is possible to stream on Twitch the content of the game played.
  • GGPO-like netplay (latency hiding rollback). It should be lag-free if everyone involved emulates at full speed, doesn't live on opposite sides of the world and has decent internet speeds. It uses peer-to-peer UDP and supports two players. Due to rollback, it requires a fair amount of CPU power to run, and only works with cores that support serialization.
  • Options for decreasing input latency related to vsync by eliminating buffering by the video driver, as well as using frame delay to delay polling of inputs until right before a vsync occurs on the display.
  • Run-ahead to reduce latency. This setting allows cycle-accuracy emulators to run ahead of mandatory 1 or 2 frames of input lag. It allows emulators to achieve better latency than original hardware (Official debut in version 1.7.2).

Building RetroArch

Main article: Building RetroArch

Using RetroArch

Main article: Using RetroArch

RetroArch for Dummies

Main article: Dummies Guide: RetroArch

Netplay

Netplay is now usable from the menu in current builds, under Settings>Netplay Options. You can get it to work with the command line or the long-deprecated RetroArch-Phoenix Launcher as well in older builds.

You must specify whether you will be hosting (server) or joining (client) the game. If joining, you must also enter the host's IP address in the field below. Make sure your firewall is open on port 55435 (default; you can change it if you like) and that the port is forwarded in your router, if applicable. You can also specify 'spectator mode,' which will allow an arbitrary number of spectators to join and watch you play without being able to play themselves.

Delay frames denote the maximum number of frames RetroArch's libretro cores will need to emulate at once to maintain synchronization due to actual network latency. You can figure out an appropriate ballpark for this number by pinging the other player and dividing the time (in milliseconds) by 16 (roughly the number of milliseconds in a frame from a game running at 60 fps). If the gameplay is a bit choppy, try increasing the number of delay frames a bit.

Similar to the GGPO platform, RetroArch creates a constant stream of savestates which, along with button presses, are exchanged and compared between the server and client machines. If the savestates start to diverge, the game rolls back in time to a point where they both agree and then the libretro cores emulates the missing frames all at once to get back to the appropriate spot. This gives the illusion of completely lagless inputs, which is invaluable for twitchy, fine controls.

If you try to connect to a server and it immediately says client disconnected, open your log and make sure your ROMs match exactly (it will complain about a hash mismatch otherwise). If it gives you a weird time-out error, just close the window and try to connect again and it should work itself out (sometimes excessive spikes in network latency can cause the states to diverge catastrophically, resulting in this error).

Alternative Launchers and Frontends

There are plenty of other frontends that can either work as a launcher for RetroArch or you can replace it entirely with another libretro frontend.

Main article: Frontends

Controversies

A number of controversies have sparked during the development of RetroArch, mostly due to Squarepusher/TwinAphex's attitude and actions towards upstream emulators. As a result, DuckStation and Reicast development has halted[1][2].

External links

References