Retro Engine v5 (RSDKv5) Clean-Room Decompilation
Sonic Mania was built on Christian Whitehead’s custom Retro Engine v5 (RSDKv5), a purpose-built 2D/3D hybrid raster and polygon engine designed for pixel-accurate 60 FPS momentum physics and CRT scanline shaders. In 2022, reverse engineers Rubberduckycooly and RMGRich released RSDKv5-Decompilation alongside the game-logic decompilation Sonic-Mania-Decompilation, reconstructing the entire C++ engine and object scripts cleanly without distributing a single byte of Sega’s copyrighted sprites, levels, or Tee Lopes’ soundtrack.
Compiled natively for Android aarch64 via SDL2 and OpenGL ES, the port runs at an instantaneous 60 FPS on virtually any 64-bit Android device, expands the horizontal viewport natively to match 16:9, 18:9, 19.5:9, and 21:9 smartphone screens (PixWidth scaling in Settings.ini), and includes a built-in mod loader compatible with PC GameBanana mods.
Setting Up Data.rsdk & Encore DLC Support
- Locate
Data.rsdkfrom Your Steam Installation: In your desktop Steam client, right-click Sonic Mania, choose Manage > Browse local files, and copyData.rsdk(~195 MB) from the root folder. (Note: ensure your Steam copy is updated to the standard post-Plus patch; if you own the Encore DLC on Steam, the Encore stage data is already insideData.rsdkand can be enabled once the Encore module is active). - Create the
/SonicMania/Directory on Android: Create a folder namedSonicManiain the root of your internal storage (/sdcard/SonicMania/or/storage/emulated/0/SonicMania/). - Place
Data.rsdkInside/sdcard/SonicMania/: CopyData.rsdkdirectly into/sdcard/SonicMania/Data.rsdk. - Install & Launch the APK: Install the official
RSDKv5Android APK from GitHub Releases, grant storage permission on first launch, and the game will boot directly into the title screen. - Installing Mods (
mods/folder): Create/sdcard/SonicMania/mods/and place each unpacked mod into its own subfolder containing amod.inifile, then enable the built-in Mod Menu from the main title screen.
Ultrawide Display Scaling (Settings.ini) & Controls
After the first boot, /sdcard/SonicMania/Settings.ini is generated automatically. If you play on an ultrawide phone (such as a 20:9 Pixel or Galaxy S series) and want the game camera to fill the entire display without side borders, open Settings.ini in any text editor and set pixWidth=532 (default 424 is 16:9). Physical Bluetooth and USB-C gamepads map automatically via SDL2, and an optional on-screen touch overlay is available for handheld touchscreen play.