Experimental Nintendo Switch Emulator written in C#
Find a file
gdkchan f82309fa2d
Vulkan: Implement multisample <-> non-multisample copies and depth-stencil resolve (#3723)
* Vulkan: Implement multisample <-> non-multisample copies and depth-stencil resolve

* FramebufferParams is no longer required there

* Implement Specialization Constants and merge CopyMS Shaders (#15)

* Vulkan: Initial Specialization Constants

* Replace with specialized helper shader

* Reimplement everything

Fix nonexistant interaction with Ryu pipeline caching
Decouple specialization info from data and relocate them
Generalize mapping and add type enum to better match spv types
Use local fixed scopes instead of global unmanaged allocs

* Fix misses in initial implementation

Use correct info variable in Create2DLayerView
Add ShaderStorageImageMultisample to required feature set

* Use texture for source image

* No point in using ReadOnlyMemory

* Apply formatting feedback

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Apply formatting suggestions on shader source

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Support conversion with samples count that does not match the requested count, other minor changes

Co-authored-by: mageven <62494521+mageven@users.noreply.github.com>
2022-11-02 18:17:19 -03:00
.github CI: Run git_short_hash inside of bash (#3808) 2022-10-29 19:00:08 +00:00
ARMeilleure Do not clear the rejit queue when overlaps count is equal to 0. (#3721) 2022-10-19 02:08:34 +00:00
distribution Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00
Ryujinx nuget: bump SPB from 0.0.4-build24 to 0.0.4-build27 (#3791) 2022-10-22 10:32:12 +02:00
Ryujinx.Audio Allocate work buffer for audio renderer instead of using guest supplied memory (#3276) 2022-09-10 01:16:24 +00:00
Ryujinx.Audio.Backends.OpenAL misc: Clean up of CS project after Avalonia merge (#3340) 2022-05-15 16:02:15 +02:00
Ryujinx.Audio.Backends.SDL2 Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
Ryujinx.Audio.Backends.SoundIo Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
Ryujinx.Ava Avalonia: Use overlay dialog for controller applet (#3777) 2022-10-23 11:15:45 +02:00
Ryujinx.Common Avoid allocations in .Parse methods (#3760) 2022-10-18 23:31:34 +00:00
Ryujinx.Cpu Revert address space mirror changes 2022-09-10 16:23:49 +02:00
Ryujinx.Graphics.Device infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
Ryujinx.Graphics.GAL GPU: Pass SpanOrArray for Texture SetData to avoid copy (#3745) 2022-10-08 12:04:47 -03:00
Ryujinx.Graphics.Gpu Vulkan: Implement multisample <-> non-multisample copies and depth-stencil resolve (#3723) 2022-11-02 18:17:19 -03:00
Ryujinx.Graphics.Host1x infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
Ryujinx.Graphics.Nvdec Support NVDEC H264 interlaced video decoding and VIC deinterlacing (#3225) 2022-03-23 17:09:32 -03:00
Ryujinx.Graphics.Nvdec.FFmpeg fix: Support FFmpeg 5.1.x for decoding (#3816) 2022-11-02 09:26:50 +01:00
Ryujinx.Graphics.Nvdec.Vp9 Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
Ryujinx.Graphics.OpenGL Vulkan: Implement multisample <-> non-multisample copies and depth-stencil resolve (#3723) 2022-11-02 18:17:19 -03:00
Ryujinx.Graphics.Shader SPIR-V: Fix tessellation control shader output types (#3807) 2022-10-29 13:45:30 -03:00
Ryujinx.Graphics.Texture GPU: Pass SpanOrArray for Texture SetData to avoid copy (#3745) 2022-10-08 12:04:47 -03:00
Ryujinx.Graphics.Vic Fix VIC out of bounds copy (#3386) 2022-06-17 12:01:52 -03:00
Ryujinx.Graphics.Video Support NVDEC H264 interlaced video decoding and VIC deinterlacing (#3225) 2022-03-23 17:09:32 -03:00
Ryujinx.Graphics.Vulkan Vulkan: Implement multisample <-> non-multisample copies and depth-stencil resolve (#3723) 2022-11-02 18:17:19 -03:00
Ryujinx.Headless.SDL2 Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
Ryujinx.HLE nuget: bump System.IdentityModel.Tokens.Jwt from 6.15.0 to 6.25.0 (#3806) 2022-10-29 10:46:46 +02:00
Ryujinx.Horizon.Generators Rewrite SVC handler using source generators rather than IL emit (#3371) 2022-05-31 17:12:46 -03:00
Ryujinx.Input Fix phantom configured Controllers (#3720) 2022-10-16 20:34:42 +02:00
Ryujinx.Input.SDL2 Fix doubling of detected gamepads on program start (#3398) 2022-06-20 19:01:55 +02:00
Ryujinx.Memory GPU: Use a bitmap to track buffer modified flags. (#3775) 2022-10-29 22:07:37 +00:00
Ryujinx.Memory.Tests Fix mapping leaks caused by UnmapView not working on Linux (#3650) 2022-10-19 01:02:45 +00:00
Ryujinx.SDL2.Common sdl2: Update to Ryujinx.SDL2-CS 2.0.22 (#3317) 2022-05-15 13:51:30 +02:00
Ryujinx.ShaderTools infra: Switch to win10-x64 RID and fix PR comment for Avalonia and SDL2 artifact rename (#3375) 2022-06-01 02:01:16 +02:00
Ryujinx.Tests Ryujinx.Tests.Unicorn: Implement IDisposable (#3794) 2022-10-23 23:51:54 +00:00
Ryujinx.Tests.Unicorn Ryujinx.Tests.Unicorn: Implement IDisposable (#3794) 2022-10-23 23:51:54 +00:00
Ryujinx.Ui.Common Volume Hotkeys (#3500) 2022-10-02 09:38:37 +00:00
Spv.Generator Fix SpirV parse failure (#3597) 2022-08-18 01:49:43 +02:00
.editorconfig Adding .editorconfig so code style can be consistent and localized (#1131) 2020-05-03 00:58:58 +02:00
.gitattributes aloha 2018-02-04 20:08:20 -03:00
.gitignore Adjusting how deadzones are calculated (#3079) 2022-02-16 11:06:52 +01:00
global.json infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
LICENSE.txt Update license (#788) 2019-10-12 23:48:31 -03:00
README.md Updated Compatibility info and GPU info (Vulkan, SPIRV, and Texture Recompression) (#3568) 2022-10-24 16:40:39 +00:00
Ryujinx.sln Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
Ryujinx.sln.DotSettings Fix SpirV parse failure (#3597) 2022-08-18 01:49:43 +02:00


Ryujinx
Ryujinx
(REE-YOU-JINX)

Ryujinx is an open-source Nintendo Switch emulator, created by gdkchan, written in C#. This emulator aims at providing excellent accuracy and performance, a user-friendly interface and consistent builds. It was written from scratch and development on the project began in September 2017. Ryujinx is available on Github under the MIT license.

Discord

Compatibility

As of October 2022, Ryujinx has been tested on approximately 3,700 titles; over 3,500 boot past menus and into gameplay, with roughly 3,000 of those being considered playable. You can check out the compatibility list here. Anyone is free to submit a new game test or update an existing game test entry; simply follow the new issue template and testing guidelines, or post as a reply to the applicable game issue. Use the search function to see if a game has been tested already!

Usage

To run this emulator, your PC must be equipped with at least 8GB of RAM; failing to meet this requirement may result in a poor gameplay experience or unexpected crashes.

See our Setup & Configuration Guide on how to set up the emulator.

For our Local Wireless and LAN builds, see our Multiplayer: Local Play/Local Wireless Guide .

Latest build

These builds are compiled automatically for each commit on the master branch. While we strive to ensure optimal stability and performance prior to pushing an update, our automated builds may be unstable or completely broken.

If you want to see details on updates to the emulator, you can visit our Changelog.

The latest automatic build for Windows, macOS, and Linux can be found on the Official Website.

Building

If you wish to build the emulator yourself, follow these steps:

Step 1

Install the X64 version of .NET 6.0 (or higher) SDK.

Step 2

Either use git clone https://github.com/Ryujinx/Ryujinx on the command line to clone the repository or use Code --> Download zip button to get the files.

Step 3

To build Ryujinx, open a command prompt inside the project directory. You can quickly access it on Windows by holding shift in File Explorer, then right clicking and selecting Open command window here. Then type the following command: dotnet build -c Release -o build the built files will be found in the newly created build directory.

Ryujinx system files are stored in the Ryujinx folder. This folder is located in the user folder, which can be accessed by clicking Open Ryujinx Folder under the File menu in the GUI.

Features

  • Audio

    Audio output is entirely supported, audio input (microphone) isn't supported. We use C# wrappers for OpenAL, and SDL2 & libsoundio as fallbacks.

  • CPU

    The CPU emulator, ARMeilleure, emulates an ARMv8 CPU and currently has support for most 64-bit ARMv8 and some of the ARMv7 (and older) instructions, including partial 32-bit support. It translates the ARM code to a custom IR, performs a few optimizations, and turns that into x86 code. There are three memory manager options available depending on the user's preference, leveraging both software-based (slower) and host-mapped modes (much faster). The fastest option (host, unchecked) is set by default. Ryujinx also features an optional Profiled Persistent Translation Cache, which essentially caches translated functions so that they do not need to be translated every time the game loads. The net result is a significant reduction in load times (the amount of time between launching a game and arriving at the title screen) for nearly every game. NOTE: this feature is enabled by default in the Options menu > System tab. You must launch the game at least twice to the title screen or beyond before performance improvements are unlocked on the third launch! These improvements are permanent and do not require any extra launches going forward.

  • GPU

    The GPU emulator emulates the Switch's Maxwell GPU using either the OpenGL (version 4.5 minimum) or Vulkan APIs through a custom build of OpenTK or Silk.NET respectively. There are currently four graphics enhancements available to the end user in Ryujinx: Disk Shader Caching, Resolution Scaling, Aspect Ratio Adjustment, and Anisotropic Filtering. These enhancements can be adjusted or toggled as desired in the GUI.

  • Input

    We currently have support for keyboard, mouse, touch input, JoyCon input support, and nearly all controllers. Motion controls are natively supported in most cases; for dual-JoyCon motion support, DS4Windows or BetterJoy are currently required. In all scenarios, you can set up everything inside the input configuration menu.

  • DLC & Modifications

    Ryujinx is able to manage add-on content/downloadable content through the GUI. Mods (romfs, exefs, and runtime mods such as cheats) are also supported; the GUI contains a shortcut to open the respective mods folder for a particular game.

  • Configuration

    The emulator has settings for enabling or disabling some logging, remapping controllers, and more. You can configure all of them through the graphical interface or manually through the config file, Config.json, found in the user folder which can be accessed by clicking Open Ryujinx Folder under the File menu in the GUI.

Contact

If you have contributions, suggestions, need emulator support or just want to get in touch with the team, join our Discord server. You may also review our FAQ.

Donations

If you'd like to support the project financially, Ryujinx has an active Patreon campaign.

All developers working on the project do so in their free time, but the project has several expenses:

  • Hackable Nintendo Switch consoles to reverse-engineer the hardware
  • Additional computer hardware for testing purposes (e.g. GPUs to diagnose graphical bugs, etc.)
  • Licenses for various software development tools (e.g. Jetbrains, IDA)
  • Web hosting and infrastructure maintenance (e.g. LDN servers)

All funds received through Patreon are considered a donation to support the project. Patrons receive early access to progress reports and exclusive access to developer interviews.

License

This software is licensed under the terms of the MIT license.
This project makes use of code authored by the libvpx project, licensed under BSD and the ffmpeg project, licensed under LGPLv3. See LICENSE.txt and THIRDPARTY.md for more details.

Credits

  • LibHac is used for our file-system.
  • AmiiboAPI is used in our Amiibo emulation.