Reference frontend for the libretro API. http://www.libretro.com
  • C 86%
  • C++ 10.2%
  • Objective-C 1.7%
  • Assembly 0.3%
  • Python 0.3%
  • Other 1.1%
Find a file
2026-06-22 07:43:38 +02:00
.github webOS: add aarch64 build to CI (#19127) 2026-06-22 07:42:50 +02:00
ai Track running length across strlcpy/strlcat chains (5 sites) 2026-05-19 23:30:53 +02:00
audio midi: add in-process FM synth driver (fmsynth) 2026-06-15 20:00:18 +02:00
bluetooth bluetoothctl: use two calls to disconnect/remove device (#17593) 2025-02-18 17:11:36 +01:00
bootstrap Psp go internal storage fix (#19100) 2026-06-12 04:14:07 +02:00
camera camera/avfoundation: guard 10.14 authorization APIs with @available 2026-06-17 20:26:51 +02:00
cheevos Remove dead unused-variable declarations across core subsystems 2026-06-17 19:39:51 +02:00
cores Fix unsafe strcpy calls in video processor 2026-05-14 15:43:08 +02:00
ctr 3ds: fix scummvm core build 2026-02-24 11:52:33 -05:00
deps [Wayland] Add support for xdg-toplevel-tag-v1 protocol (#18317) 2026-05-10 09:39:55 +02:00
dingux More string_is_empty removal 2026-04-07 04:53:28 +02:00
dist-scripts Fix psl1ght target of dist-cores.sh (#18130) 2025-07-31 11:39:38 +02:00
docs * platform: Honor the LIBRETRO_CHEATS_DIRECTORY environment variable. (#17440) 2025-01-20 15:08:45 +01:00
emscripten Emscripten bugfixes/nits (#18562) 2026-01-01 16:08:55 +01:00
fastlane/metadata/android/en-US Revert "Optimize wastefully encoded raster image files (#18113)" (#18114) 2025-07-22 03:25:27 +02:00
frontend Psp go internal storage fix (#19100) 2026-06-12 04:14:07 +02:00
gfx fix Metal display errors in koko-aio (#19129) 2026-06-22 07:43:38 +02:00
griffin midi: add in-process FM synth driver (fmsynth) 2026-06-15 20:00:18 +02:00
input Remove dead unused-variable declarations across core subsystems 2026-06-17 19:39:51 +02:00
intl Fetch translations from Crowdin 2026-06-22 00:48:34 +00:00
led Replace string_is_equal with memcmp where possible 2026-04-02 18:18:55 +02:00
libretro-common cdrom: use kIOMainPortDefault only where available 2026-06-17 20:26:51 +02:00
libretro-db fix: V-001 security vulnerability (#19027) 2026-05-25 03:50:11 +02:00
location/drivers location/corelocation: guard 10.15 requestWhenInUseAuthorization 2026-06-17 20:52:00 +02:00
media (Win32) 2026-04-12 14:51:45 +02:00
memory WII/GX: omnibus audit pass (memory safety, leaks, folds, cleanup) 2026-05-16 22:48:59 +02:00
menu Menu cbs left-right scroll consistency fixes + cleanups 2026-06-21 17:45:52 +03:00
midi/drivers midi/fmsynth: split brass, reed, pipe and organ families 2026-06-16 01:36:09 +02:00
misc/cpufreq Replace sscanf with strtoul/strtol in hot paths 2026-05-19 21:10:54 +02:00
network Track running length across strlcpy/strlcat chains (5 sites) 2026-05-19 23:30:53 +02:00
pkg (apple) Fix AppIntents GameEntity build error and Sendable warning 2026-06-17 18:07:26 +02:00
play_feature_delivery (Android) Silence warnings 2026-04-07 22:45:09 +02:00
qb [Wayland] Add support for xdg-toplevel-tag-v1 protocol (#18317) 2026-05-10 09:39:55 +02:00
record New stream option Kick (#19058) 2026-05-24 08:32:58 +02:00
reference Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
samples gfx/gfx_widgets: lock msg_queue against producer-producer race 2026-04-29 23:27:44 +02:00
shaders Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
shaders-hlsl Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
shaders-hlsl-no-opt/asm/frag Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
shaders-msl Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
shaders-no-opt/asm/frag Squashed 'deps/SPIRV-Cross/' changes from 9c57364f18..8aa6731925 2019-07-09 18:49:50 +02:00
steam short-chain strlcpy bound fixes via strlcpy_append 2026-04-28 07:04:30 +02:00
tasks Reduce overlay logging 2026-06-21 16:30:57 +03:00
tests-other Revert "Kiosk Mode Hotkey and Bug Fix ( For Empty Main Menu )" 2025-06-07 18:00:14 +02:00
tools Add OriginalAspect and OriginalAspectRot uniforms (#17123) 2024-11-02 04:04:12 -07:00
ui New stream option Kick (#19058) 2026-05-24 08:32:58 +02:00
uwp Remove a bunch of unused functions now 2026-04-17 23:11:20 +02:00
vita/launcher (vita/launcher) Use snprintf 2021-05-18 15:07:58 +02:00
webos webOS: patch IPK so it can be installed onto webOS menu (#19074) 2026-05-29 14:14:49 +02:00
wii WII/LIBOGC: omnibus audit pass (memory safety, scheduler, IRQ, cleanups) 2026-05-16 23:10:07 +02:00
wiiu elf2rpl: drop zlib dependency, use self-contained CRC-32 2026-05-30 01:19:25 +02:00
.dir-locals.el Incremental statestream checkpoints for replays (#18213) 2025-08-30 12:35:08 +02:00
.editorconfig HTTPS link to EditorConfig.org 2021-07-06 13:55:43 +09:00
.gitignore [Wayland] Add support for xdg-toplevel-tag-v1 protocol (#18317) 2026-05-10 09:39:55 +02:00
.gitlab-ci.yml Change gitlab expiration from 10 days back to 10 min 2026-04-08 13:48:13 +02:00
.project implement a way to set rewind_buffer_size via the UI 2018-07-13 16:12:09 -04:00
.travis.yml (Travis) Try to take out two Travis jobs that always fail and are 2021-03-22 22:16:19 +01:00
accessibility.h AI service: Add Apple on-device OCR/Translation (#18671) 2026-02-01 14:29:27 +01:00
AUTHORS.h Update AUTHORS.h: Edit name (#17610) 2025-02-21 12:33:48 -08:00
autosave.h Cleanups - less settings_t pointer passing 2025-02-11 09:38:54 +01:00
CHANGES.md Change list up to 2026-05-19 (#19049) 2026-05-21 00:53:18 +02:00
cheat_manager.c cheat_manager: fix realloc (p, 0) leading to double free (#19106) 2026-06-14 16:53:37 +02:00
cheat_manager.h menu: allow direct input for +/- cheat search values (#19071) 2026-05-28 02:40:47 +02:00
CODE_OF_CONDUCT.md Include subject line inclusion. 2021-08-26 09:34:40 -04:00
CODING-GUIDELINES * PATH_MAX_LENGTH redefined from 4096 to 2048 2024-09-09 05:47:32 +02:00
com.libretro.RetroArch.desktop Update com.libretro.RetroArch.desktop (#18195) 2025-08-24 10:36:09 +02:00
com.libretro.RetroArch.metainfo.xml Use reverse DNS name for desktop file and icon (#16449) 2024-09-23 09:03:48 -07:00
command.c Whoops 2026-05-28 14:49:14 +03:00
command.h add CMD_EVENT_VIDEO_FILTER_INIT case & free on deinit (#19034) 2026-05-14 04:05:56 +02:00
config.def.h XMB: Add entry icons option (#19084) 2026-06-02 22:08:47 +02:00
config.def.keybinds.h add VIDEO_FILTER_TOGGLE hotkey & video_filter_enable settings (#19033) 2026-05-13 21:41:42 +02:00
config.features.h Webp (#18956) 2026-04-19 22:48:27 +02:00
configuration.c XMB: Add entry icons option (#19084) 2026-06-02 22:08:47 +02:00
configuration.h XMB: Add entry icons option (#19084) 2026-06-02 22:08:47 +02:00
configure qb: Don't create config.log with ./configure --help. 2019-07-28 22:12:26 -07:00
content.h Add timed automatic savestate (#18980) 2026-05-25 03:51:12 +02:00
CONTRIBUTING.md docs: update stale discord invite links (#18588) 2026-01-07 18:21:10 +01:00
COPYING Add GPLv3 text I suppose. 2011-01-25 13:31:55 +01:00
core.h Simplify core_serialize_size and core_serialize_size_special 2023-06-16 17:20:27 +02:00
core_backup.c scattered OOM fixes: core_backup entries leak, netplay core_netpacket_interface and rooms_data 2026-04-24 01:54:16 +02:00
core_backup.h Cleanups 2023-09-02 16:42:49 +02:00
core_info.c core_info: gate string_split on strdup success in CCJSONStringHandler 2026-04-24 16:02:32 +02:00
core_info.h core_info improvements: 2026-03-12 19:09:09 +01:00
core_option_manager.c Get rid of most string_is_empty calls 2026-04-07 22:09:00 +02:00
core_option_manager.h General cleanups - 2022-08-01 21:31:45 +02:00
core_updater_list.c More string_is_empty removal 2026-04-07 04:53:28 +02:00
core_updater_list.h (Android/Play Store) Add frontend support for core installation via Play Feature Delivery 2020-08-28 16:30:54 +01:00
database_info.c libretro-common/string: add strlcpy_append helper and apply to database_info_build_query_enum 2026-04-28 06:44:59 +02:00
database_info.h (database_info) filtered queries and scanning should both be faster 2026-04-14 05:38:29 +02:00
default.txt Bump version 2025-11-15 01:56:28 +01:00
defaults.h * PATH_MAX_LENGTH redefined from 4096 to 2048 2024-09-09 05:47:32 +02:00
disk_control_interface.c Replace string_is_empty 2026-04-07 03:35:23 +02:00
disk_control_interface.h Less string buffers and less string copies 2025-01-16 23:59:22 +01:00
disk_index_file.c More string_is_empty removal 2026-04-07 04:53:28 +02:00
disk_index_file.h More struct reordering/alignment 2020-08-14 21:00:04 +02:00
Doxyfile Add Doxygen-styled comments to parts of the libretro API (#15641) 2024-03-09 17:24:01 -08:00
driver.h Add microphone support via a new driver (#14731) 2023-06-06 21:55:06 +02:00
dynamic.h Silence warning about type sign mismatch 2025-03-20 18:24:55 +00:00
fetch-submodules.sh fetch-submodules.sh - fail on errors (#17234) 2024-12-05 06:21:42 -08:00
file_path_special.c Replace string_is_empty 2026-04-07 03:35:23 +02:00
file_path_special.h [PATCH] (file_path_special) Remove 33 unused FILE_PATH_* macros 2026-05-02 22:50:51 +02:00
github-contributors.py Update AUTHORS.h and script 2021-08-31 22:42:31 +03:00
lakka-switch.h Lakka Switch Updates.... (#15754) 2023-10-06 04:55:22 -07:00
lakka.h lakka: reconsideration for samba service enable disable (#18696) 2026-02-21 21:43:38 +02:00
list_special.h Cleanups 2024-12-22 20:01:28 +01:00
location_driver.h Merge midi_driver.c and location_driver.c into retroarch.c - 2023-12-17 05:01:12 +01:00
Makefile Qt: fix --disable-menu link errors 2026-05-12 23:00:22 +02:00
Makefile.apple Clean up white space. 2019-02-03 16:00:50 -08:00
Makefile.classic_sega_mini Remove remaining mentions of joyconfig (#14787) 2022-12-31 02:35:08 +01:00
Makefile.classic_snesc Remove remaining mentions of joyconfig (#14787) 2022-12-31 02:35:08 +01:00
Makefile.common midi: add in-process FM synth driver (fmsynth) 2026-06-15 20:00:18 +02:00
Makefile.ctr Allow savestate undo disable for pcsx_rearmed on old3ds (#18755) 2026-02-22 07:16:03 +01:00
Makefile.ctr.salamander Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.dingux Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.dos Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.dos.salamander More DOS updates: (#18700) 2026-02-14 14:01:13 +01:00
Makefile.emscripten Emscripten bugfixes/nits (#18562) 2026-01-01 16:08:55 +01:00
Makefile.griffin allow passing HAVE_OGG_OGC to link to needed OGG libs in PPC portlibs, needed for a few cores. 2025-07-17 18:28:49 -05:00
Makefile.lfx000 Use reverse DNS name for desktop file and icon (#16449) 2024-09-23 09:03:48 -07:00
Makefile.libnx Removing untested branches 2026-03-10 22:00:52 -05:00
Makefile.libogc Clean up white space. 2019-02-03 16:00:50 -08:00
Makefile.miyoo Makefile.miyoo: use generic call for SYSROOT path (#18747) 2026-02-19 07:13:38 +01:00
Makefile.msvc We cna finally remove D3DX vestigial remnants completely 2026-04-11 17:56:04 +02:00
Makefile.ngc Merge pull request #18100 from saulfabregwiivc/lvorbis-link-libogc-platforms 2025-07-18 08:13:20 +02:00
Makefile.openpandora Get rid of obsolete HAVE_VIDEO_LAYOUT - obsolete spec, was only 2023-02-23 21:03:41 +01:00
Makefile.orbis Makefiles: don't print info unconditionally 2025-04-29 18:36:48 +00:00
Makefile.orbis.salamander Improve makefiles 2022-11-08 21:36:44 +01:00
Makefile.pandora Remove remaining mentions of joyconfig (#14787) 2022-12-31 02:35:08 +01:00
Makefile.ps2 Fixx GCC 15 compilation issues 2026-01-09 10:49:46 -05:00
Makefile.ps2.salamander Fixx GCC 15 compilation issues 2026-01-09 10:49:46 -05:00
Makefile.psl1ght Fix broken logic in the clean target 2025-05-17 09:17:07 +00:00
Makefile.psl1ght.salamander Get rid of obsolete HAVE_VIDEO_LAYOUT - obsolete spec, was only 2023-02-23 21:03:41 +01:00
Makefile.psp1 Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.psp1.salamander Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.retrofw Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.rg350 Enable networking for RG350 (#15182) 2023-04-11 17:31:49 +02:00
Makefile.rg350_odbeta Enable networking for RG350 (#15182) 2023-04-11 17:31:49 +02:00
Makefile.rs90 Makefiles: don't print info unconditionally 2025-04-29 18:36:48 +00:00
Makefile.switch Add HAVE_CORE_INFO_CACHE - disable this for Steam build 2021-10-14 15:57:28 +02:00
Makefile.vita Enable cloud sync feature in PSVITA (#18533) 2025-12-22 23:56:17 +01:00
Makefile.vita.salamander Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.webos webOS: add aarch64 build to CI (#19127) 2026-06-22 07:42:50 +02:00
Makefile.wii Merge pull request #18100 from saulfabregwiivc/lvorbis-link-libogc-platforms 2025-07-18 08:13:20 +02:00
Makefile.wii.salamander Forgot to add compat_strldup.c to Wii and WiiU salamanders 2022-08-25 17:02:05 +02:00
Makefile.wiiu Make -ffast-math exclusive to sinc_resampler.c 2025-05-02 17:26:19 +00:00
Makefile.win We cna finally remove D3DX vestigial remnants completely 2026-04-11 17:56:04 +02:00
manual_content_scan.c Small fixes for scan rework 2026-04-08 02:32:07 +02:00
manual_content_scan.h Merge of manual and autoscan 2026-04-06 19:11:06 +02:00
midi_driver.h midi: add in-process FM synth driver (fmsynth) 2026-06-15 20:00:18 +02:00
msg_hash.c msg_hash: replace DJB2 magic-hash dispatch with direct string table 2026-05-20 03:00:36 +02:00
msg_hash.h XMB: Add entry icons option (#19084) 2026-06-02 22:08:47 +02:00
msg_hash_lbl_str.h Menu cbs left-right scroll consistency fixes + cleanups 2026-06-21 17:45:52 +03:00
nvda_controller.h Change name of nvdaController.h 2020-05-10 08:51:25 +02:00
nvdaControllerClient64.dll Added in auto-translate support, fixes for ozone and glui accessibility, and support for nvda and SAPI narration. 2020-04-13 17:46:08 -07:00
paths.h Fix Save Main Configuration saving to wrong file after Load Configuration (#18771) 2026-02-25 17:19:21 +01:00
performance_counters.h Header uniformity - enums on top, then structs, then public declarations 2023-05-30 21:03:36 +02:00
playlist.c Revert "playlist: defensive check for when file is temporarily unavailable" 2026-04-21 15:25:00 -04:00
playlist.h Some linking fixes for Apple/Darwin 2026-04-20 00:09:39 +02:00
README-exynos.md exynos: update TODO list 2014-08-09 16:43:48 +02:00
README-mali_fbdev_r4p0.md Fix typos (#17068) 2024-10-01 17:36:33 -07:00
README-OMAP.md video_omap: more docu fixes 2014-01-14 16:39:24 -06:00
README.md Update README.md 2026-04-03 17:07:14 +02:00
retroarch-android-debug.diff chore(android): update patched file 2026-03-29 06:56:21 +02:00
retroarch-apple-packaging.sh Build OSX Metal using Makefile (#11941) 2021-01-26 09:48:15 +01:00
retroarch-mingw-build.sh Clean up white space. 2019-02-03 16:00:50 -08:00
retroarch.c midi: add in-process FM synth driver (fmsynth) 2026-06-15 20:00:18 +02:00
retroarch.cfg Revert skeleton cfg rename due to packaging error 2026-01-22 21:45:42 +02:00
retroarch.h Allow savestate undo disable for pcsx_rearmed on old3ds (#18755) 2026-02-22 07:16:03 +01:00
retroarch_types.h retroarch: gate retroarch_fail longjmp on init-in-progress 2026-05-03 09:01:02 +02:00
runahead.c runahead: flatten single-slot mylist wrapper into direct savestate struct 2026-05-20 03:21:35 +02:00
runahead.h Preemptive Frames updates (#17003) 2024-09-14 12:14:36 -07:00
runloop.c Remove dead unused-variable declarations across core subsystems 2026-06-17 19:39:51 +02:00
runloop.h Revert "runloop: event-driven dual-bitmask infrastructure for menu pacing" 2026-05-20 13:28:42 +02:00
runtime_file.c Add Load State to Run menu (#18997) 2026-05-02 04:59:06 +02:00
runtime_file.h Add Load State to Run menu (#18997) 2026-05-02 04:59:06 +02:00
runtime_file_defines.h (config.def.h) only try to include define headers 2022-11-27 22:57:17 +01:00
save.c save: own autosave handle's path string instead of borrowing it 2026-05-03 05:05:43 +02:00
SECURITY.md Create SECURITY.md (#17553) 2025-02-10 22:07:57 +01:00
setting_list.h setting_list - remove unused original_value 2025-02-12 13:56:21 +01:00
state_manager.c (state_manager) Remove dead function 2026-04-05 04:56:18 +02:00
state_manager.h Revert "Use RETRO_SAVESTATE_CONTEXT_RUNAHEAD_SAME_INSTANCE for rewind savesta…" (#18383) 2025-11-12 22:41:24 +01:00
switch_performance_profiles.h Relocate Switch CPU profile definitions 2025-04-08 17:12:03 +00:00
translation_defines.h Add Belarusian language option (#15780) 2023-10-31 05:51:57 -07:00
travis-deploy-key.enc travis: deploy OSX Metal build 2018-09-02 21:57:06 -04:00
travis_metal_deploy.sh Last fix 2021-05-29 11:03:35 +07:00
verbosity.c macos: see log output in xcode even with log-to-file on 2026-04-22 09:36:42 -04:00
verbosity.h len variable/argument name standardization 2025-01-15 16:04:25 +01:00
version.all Bump to version 1.22.2 2025-11-17 14:22:57 +01:00
version.dtd Bump to version 1.22.2 2025-11-17 14:22:57 +01:00
version.h Clean up trailing whitespace 2017-12-12 00:24:18 -08:00
version_git.c Remove trailing blank lines. 2019-01-17 19:39:38 -08:00
version_git.h Remove trailing blank lines. 2019-01-17 19:39:38 -08:00
wiiu-devel.properties.template Implement UDP broadcast network logging on Wii U 2018-05-06 14:39:48 -07:00

Build Status Coverity Scan Build Status Crowdin

RetroArch

RetroArch is the reference frontend for the libretro API. Popular examples of implementations for this API includes video game system emulators and game engines as well as more generalized 3D programs. These programs are instantiated as dynamic libraries. We refer to these as "libretro cores".

XMB menu driver

rgui menu driver

glui menu driver

ozone menu driver

libretro

libretro is an API that exposes generic audio/video/input callbacks. A frontend for libretro (such as RetroArch) handles video output, audio output, input and application lifecycle. A libretro core written in portable C or C++ can run seamlessly on many platforms with very little to no porting effort.

While RetroArch is the reference frontend for libretro, several other projects have used the libretro interface to include support for emulators and/or game engines. libretro is completely open and free for anyone to use.

libretro API header

Binaries

Latest binaries are currently hosted on the buildbot.

Support

To reach developers, either make an issue here on GitHub, make a thread on the forum, chat on Discord. You could create a post in Reddit with Technical Support flair.

Documentation

See our Documentation Center. On Unix, man-pages are provided. More developer-centric stuff is found here.

Philosophy

RetroArch attempts to be small and lean while still having all the useful core features expected from an emulator. It is designed to be very portable and features a gamepad-centric and touchscreen UI. It also has a full-featured command-line interface.

In some areas, RetroArch goes beyond and emphasizes on not-so-common technical features such as multi-pass shader support, real-time rewind (Braid-style), video recording (using FFmpeg), run-ahead input latency removal, etc.

RetroArch also emphasizes being easy to integrate into various launcher frontends.

Platforms

RetroArch has been ported to the following platforms:

  • Android (2.x to most recent version)
  • Apple iOS
  • Apple macOS (PPC, x86-32 and x86-64)
  • Apple tvOS
  • Blackberry
  • DOS
  • Emscripten (WebAssembly and JavaScript)
  • FreeBSD
  • Haiku
  • LG webOS
  • Linux
  • Original Microsoft Xbox
  • Microsoft Xbox 360 (Libxenon/XeXDK)
  • Microsoft Xbox One
  • Microsoft Xbox Series S/X
  • Miyoo
  • NetBSD
  • Nintendo NES/SNES Classic Edition
  • Nintendo GameCube
  • Nintendo Wii
  • Nintendo Switch
  • Nintendo Wii U
  • Nintendo 3DS/2DS
  • OpenBSD
  • OpenDingux
  • PlayStation2
  • PlayStation3
  • PlayStation4
  • PlayStation Portable
  • PlayStation Vita
  • Raspberry Pi
  • ReactOS
  • Redox OS
  • RetroFW
  • RS90
  • SerenityOS
  • Solaris
  • Windows NT 3.5
  • Windows 95
  • Windows 98
  • Windows 2000
  • Windows XP
  • Windows Millennium
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
  • Windows 11

Dependencies (PC)

There are no true hard dependencies per se.

On Windows, RetroArch can run with only Win32 as dependency.

On Linux, there are no true dependencies. For optimal usage, the following dependencies come as recommended:

  • GL headers / Vulkan headers
  • X11 headers and libs, or EGL/KMS/GBM

OSX port of RetroArch requires latest versions of Xcode to build.

RetroArch can utilize these libraries if enabled:

  • nvidia-cg-toolkit
  • libfreetype2 (TTF font rendering on screen)

RetroArch needs at least one of these audio driver libraries:

  • ALSA
  • OSS
  • RoarAudio
  • RSound
  • OpenAL
  • JACK
  • SDL
  • PulseAudio
  • PipeWire
  • XAudio2 (Win32, Xbox 360)
  • DirectSound (Win32, Xbox 1)
  • CoreAudio (OSX, iOS)

To run properly, RetroArch requires a libretro implementation present; however, as it's typically loaded dynamically, it's not required at build time.

Dependencies (Console ports, mobile)

Console ports have their own dependencies, but generally do not require anything other than what the respective SDKs provide.

Requirements

OpenGL1

Your videocard needs to at least support the OpenGL 1.1 spec.

Shaders: N/A

Menu driver support: MaterialUI, XMB, Ozone and RGUI should all work correctly. XMB won't have shader pipeline effects because of the aforementioned lack of shader support.

OpenGL2

Your videocard needs to at least support the OpenGL 2.1 spec.

Shaders: You can choose between either NVIDIA Cg shaders (deprecated, requires separate runtime to be installed on your system), or GLSL shaders.

Menu driver support: MaterialUI, XMB, Ozone and RGUI should all work correctly.

OpenGL3

Your videocard needs to at least support the OpenGL 3.2 core feature spec.

Shaders: You will be able to use modern Slang shaders with this driver.

Menu driver support: MaterialUI, XMB, Ozone and RGUI should all work correctly.

Direct3D 11

Your videocard needs to at least support the Direct3D11 11.0 spec. The card also needs to support at least the Shader Model 4.0.

Shaders: You will be able to use modern Slang shaders with this driver.

Menu driver support: MaterialUI, XMB, Ozone and RGUI should all work correctly.

Vulkan

Your videocard needs to at least support the Vulkan 1.0 spec.

Shaders: You will be able to use modern Slang shaders with this driver.

Menu driver support: MaterialUI, XMB, Ozone and RGUI should all work correctly.

Configuring

The default configuration is defined in config.def.h. It is not recommended to change this unless you know what you're doing. These can later be tweaked by using a config file. A sample configuration file is installed to /etc/retroarch.cfg. This is the system-wide config file.

RetroArch will on startup create a config file in $XDG\_CONFIG\_HOME/retroarch/retroarch.cfg if it does not exist. Users only need to configure a certain option if the desired value deviates from the value defined in config.def.h.

To configure joypads, use the built-in menu or manually configure them in retroarch.cfg.

Compiling and installing

Instructions for compiling and installing RetroArch can be found in the Libretro/RetroArch Documentation Center.

CRT 15Khz Resolution Switching

CRT SwitchRes will turn on, on the fly. However, you will need to restart RetroArch to disable it. With CRT SwitchRes enable RetroArch will start in 2560 x 480 @ 60.

If you are running Windows, before enabling the CRT SwitchRes options please make sure you have installed CRTEmudriver and installed some modelines. The minimum modelines for all games to switch correctly are:

  • 2560 x 192 @ 60.000000
  • 2560 x 200 @ 60.000000
  • 2560 x 240 @ 60.000000
  • 2560 x 224 @ 60.000000
  • 2560 x 237 @ 60.000000
  • 2560 x 256 @ 50.000000
  • 2560 x 254 @ 55.000000
  • 2560 x 448 @ 60.000000
  • 2560 x 480 @ 60.000000

Install these modelines replacing 2560 with your desired super resolution. The above resolutions are NTSC only so if you would be playing any PAL content please add PAL modelines:

  • 2560 x 192 @ 50.000000
  • 2560 x 200 @ 50.000000
  • 2560 x 240 @ 50.000000
  • 2560 x 224 @ 50.000000
  • 2560 x 288 @ 50.000000
  • 2560 x 237 @ 50.000000
  • 2560 x 254 @ 55.000000
  • 2560 x 448 @ 50.000000
  • 2560 x 480 @ 50.000000

Some games will require higher PAL resolutions which should also be installed:

  • 2560 x 512 @ 50.000000
  • 2560 x 576 @ 50.000000

Ideally install all these modelines and everything will work great.

Super Resolutions

The default super resolution is 2560. It is displayed just under the CRT switch option, which can be found in video settings. This can be changed within the retroarch.cfg. The only compatible resolutions are 1920, 2560 and 3840. Any other resolutions will be ignored and native switching will be activated.

Native Resolutions

If native resolutions are activated you will need a whole new set of modelines:

  • 256 x 240 @ 50.006977 SNESpal

  • 256 x 448 @ 50.006977 SNESpal

  • 512 x 224 @ 50.006977 SNESpal

  • 512 x 240 @ 50.006977 SNESpal

  • 512 x 448 @ 50.006977 SNESpal

  • 256 x 240 @ 60.098812 SNESntsc

  • 256 x 448 @ 60.098812 SNESntsc

  • 512 x 240 @ 60.098812 SNESntsc

  • 512 x 224 @ 60.098812 SNESntsc

  • 512 x 448 @ 60.098812 SNESntsc

  • 256 x 192 @ 59.922745 MDntsc

  • 256 x 224 @ 59.922745 MDntsc

  • 320 x 224 @ 59.922745 MDntsc

  • 320 x 240 @ 59.922745 MDntsc

  • 320 x 448 @ 59.922745 MDntsc

  • 320 x 480 @ 59.922745 MDntsc

  • 256 x 192 @ 49.701458 MDpal

  • 256 x 224 @ 49.701458 MDpal

  • 320 x 224 @ 49.701458 MDpal

  • 320 x 240 @ 49.701458 MDpal

  • 320 x 288 @ 49.701458 MDpal

  • 320 x 448 @ 49.701458 MDpal

  • 320 x 480 @ 49.701458 MDpal

  • 320 x 576 @ 49.701458 MDpal

  • 256 x 288 @ 49.701458 MSYSpal

  • 256 x 240 @ 60.098812 NESntsc

  • 256 x 240 @ 50.006977 NESpal

  • 640 x 237 @ 60.130001 N64ntsc

  • 640 x 240 @ 60.130001 N64ntsc

  • 640 x 480 @ 60.130001 N64ntsc

  • 640 x 288 @ 50.000000 N64pal

  • 640 x 480 @ 50.000000 N64pal

  • 640 x 576 @ 50.000000 N64pal

  • 256 x 252 @ 49.759998 PSXpal

  • 320 x 252 @ 49.759998 PSXpal

  • 384 x 252 @ 49.759998 PSXpal

  • 640 x 252 @ 49.759998 PSXpal

  • 640 x 540 @ 49.759998 PSXpal

  • 384 x 240 @ 59.941002 PSXntsc

  • 256 x 480 @ 59.941002 PSXntsc

  • 352 x 240 @ 59.820000 Saturn/SGFX_NTSCp

  • 704 x 240 @ 59.820000 SaturnNTSCp

  • 352 x 480 @ 59.820000 SaturnNTSCi

  • 704 x 480 @ 59.820000 SaturnNTSCi

  • 352 x 288 @ 49.701458 SaturnPALp

  • 704 x 288 @ 49.701458 SaturnPALp

  • 352 x 576 @ 49.701458 SaturnPALi

  • 704 x 576 @ 49.701458 SaturnPALi

  • 240 x 160 @ 59.730000 GBA

  • 320 x 200 @ 60.000000 Doom

// Arcade

  • 400 x 254 @ 54.706841 MK
  • 384 x 224 @ 59.637405 CPS1

These modelines are more accurate giving exact hz. However, some games may have unwanted results. This is due to mid-scanline resolution changes on the original hardware. For the best results super resolutions are the way to go.

CRT resolution switching & MAME

Some arcade resolutions can be very different from consumer CRTs. There is resolution detection to ensure MAME games will be displayed in the closest available resolution but drawn at their native resolution within this resolution. Meaning that the MAME game will look just like the original hardware.

MAME ROMs that run in a vertical aspect like DoDonPachi need to be rotated within MAME before resolution switching and aspect correction will work. Do this before enabling CRT SwitchRes so that RetroArch will run in your desktop resolution. Once you have rotated any games that may need it turn CRT SwitchRes on.

Socials

The links below belong to our official channels. Links other than this may have been created by fans, independent members or followers. We seriously recommend using our original resources.