PlayStation 4 emulator for Windows, Linux and macOS written in C++ https://shadps4.net/
  • C++ 98.3%
  • C 1.1%
  • CMake 0.4%
  • SourcePawn 0.2%
Find a file
artemkaVG fecfbed092
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / Run C++ Tests on macos-26 (push) Waiting to run
Build and Release / Run C++ Tests on ubuntu-latest (push) Waiting to run
Build and Release / Run C++ Tests on windows-latest (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
texture_cache: Avoid associating color images with stencil (#5118)
* vk_rasterizer: Only redirect stencil reads for stencil-compatible formats

The stencil-to-depth association is keyed on the stencil plane address
alone, so it also lands on unrelated surfaces that reuse that memory.
Following it for a non-stencil format builds a view of the depth-stencil
image in another compatibility class with a Depth|Stencil aspect, and
storage writes through that view corrupt the depth buffer. Only redirect
when the request can actually be a stencil view.

Together with readbacks set to Precise this fixes the missing world
geometry in Uncharted: Drake's Fortune Remastered (CUSA03280).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* texture_cache: Only link stencil images with a stencil format

Don't associate a color image with the depth buffer in the first place,
as suggested in review, instead of skipping the redirect in BindTextures.
FindDepthTarget now only links the placeholder or an image with a stencil
compatible format at the stencil address, and doesn't create a
placeholder over a color image. The BindTextures check is reverted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* texture_cache: Keep dummy stencil associations at reused addresses

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 17:08:11 +03:00
.github externals: Update mesa-kosmickrisp (#5063) 2026-09-20 03:16:47 -07:00
cmake cmake: allow system zarchive library (#4786) 2026-07-31 20:05:45 -07:00
documents docs: update Linux compiler instructions (#5000) 2026-09-26 11:41:13 +03:00
externals externals: Update mesa-kosmickrisp (#5152) 2026-09-27 21:58:59 +03:00
LICENSES video_core: Renderer optimizations pt1 (#5112) 2026-09-26 15:47:11 +03:00
scripts Rewrite Save Data & Impl Save Data Dialog (#824) 2024-09-20 12:34:19 +03:00
src texture_cache: Avoid associating color images with stencil (#5118) 2026-10-01 17:08:11 +03:00
tests Core: Fix recently added settings (#5172) 2026-09-29 08:40:58 +03:00
.gitignore Addition of Nix flake development shell (#4184) 2026-03-30 23:35:57 +03:00
.gitmodules Upstreaming imgui (#4960) 2026-09-03 15:40:23 +03:00
CMakeLists.txt revert vdec2 to its original form (#5160) 2026-09-28 16:15:55 +03:00
CMakePresets.json build: Move platform presets to cmake directory (#4595) 2026-06-20 05:00:59 -07:00
CMakeSettings.json Remove Qt from emulator (#3733) 2025-10-31 10:28:39 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md with AI usage rules 2026-08-05 23:22:12 +03:00
flake.lock Nix remove abseil (#4876) 2026-08-19 13:32:57 +02:00
flake.nix Added python3 (#5102) 2026-09-24 14:45:03 -07:00
LICENSE Initial commit 2022-10-24 12:48:38 +03:00
README.md LLE system computer vision libraries except VrTracker (#4937) 2026-08-29 23:55:44 +03:00
REUSE.toml build: Move platform presets to cmake directory (#4595) 2026-06-20 05:00:59 -07:00



shadPS4

Bloodborne by From Software Hatsune Miku Project DIVA Future Tone by SEGA
Bloodborne screenshot Project DIVA screenshot
Yakuza 0 by SEGA DRIVECLUB™ by Evolution Studios
Yakuza screenshot DRIVECLUB screenshot

General information

shadPS4 is an early PlayStation 4 emulator for Windows, Linux and macOS written in C++.

Important

This is the emulator core, which does not include a GUI. If you just want to use the emulator as an end user, download the QtLauncher instead.

If you encounter problems or have doubts, do not hesitate to look at the Quickstart.
To verify that a game works, you can look at shadPS4 Game Compatibility.
To discuss shadPS4 development, suggest ideas or to ask for help, join our Discord server.
To get the latest news, go to our X (Twitter) or our website.
You can donate to the project via our Kofi page.

Status

Important

shadPS4 is early in development, don't expect a flawless experience.

Currently, the emulator can successfully run games like Bloodborne, Dark Souls Remastered, Red Dead Redemption, and many other games.

Why

This project began for fun. Given our limited free time, it may take some time before shadPS4 can run more complex games, but we're committed to making small, regular updates.

Building

Docker

For building shadPS4 in a containerized environment using Docker and VSCode, check the instructions here:
Docker Build Instructions

Windows

Check the build instructions for Windows.

Linux

Check the build instructions for Linux.

macOS

Check the build instructions for macOS.

Important

macOS users need at least macOS 26.0 to run shadPS4. Intel Macs are not supported.

Usage examples

Important

For a user-friendly GUI, download the QtLauncher.

To get the list of all available commands and also a more detailed description of what each command does, please refer to the --help flag's output.

Below is a list of commonly used command patterns:

shadPS4 CUSA00001 # Searches for a game folder called CUSA00001 in the list of game install folders, and boots it.
shadPS4 --fullscreen true --config-clean CUSA00001    # the game argument is always the last one,
shadPS4 -g CUSA00001 --fullscreen true --config-clean # ...unless manually specified otherwise.
shadPS4 /path/to/game.elf # Boots a PS4 ELF file directly. Useful if you want to boot an executable that is not named eboot.bin.
shadPS4 CUSA00001 -- -flag1 -flag2 # Passes '-flag1' and '-flag2' to the game executable in argv.

Debugging and reporting issues

For more information on how to test, debug and report issues with the emulator or games, read the Debugging documentation.

Keyboard and Mouse Mappings

Note

Some keyboards may also require you to hold the Fn key to use the F* keys. Mac users should use the Command key instead of Control, and need to use Command+F11 for full screen to avoid conflicting with system key bindings.

Button Function
F10 FPS Counter
Ctrl+F10 Video Debug Info
F11 Fullscreen
F12 Trigger RenderDoc Capture (or game-only screenshot if RenderDoc is unavailable)
Alt+F12 Capture screenshot including HUD/dialog overlays

Note

Xbox and DualShock controllers work out of the box.

Controller button Keyboard equivalent
LEFT AXIS UP W
LEFT AXIS DOWN S
LEFT AXIS LEFT A
LEFT AXIS RIGHT D
RIGHT AXIS UP I
RIGHT AXIS DOWN K
RIGHT AXIS LEFT J
RIGHT AXIS RIGHT L
TRIANGLE Numpad 8 or C
CIRCLE Numpad 6 or B
CROSS Numpad 2 or N
SQUARE Numpad 4 or V
PAD UP UP
PAD DOWN DOWN
PAD LEFT LEFT
PAD RIGHT RIGHT
OPTIONS RETURN
BACK BUTTON / TOUCH PAD SPACE
L1 Q
R1 U
L2 E
R2 O
L3 X
R3 M

Keyboard and mouse inputs can be customized in the settings menu by clicking the Controller button, and further details and help on controls are also found there. Custom bindings are saved per-game. Inputs support up to three keys per binding, mouse buttons, mouse movement mapped to joystick input, and more.

Firmware files

shadPS4 can load some PlayStation 4 firmware files. The following firmware modules are supported and must be placed in shadPS4's sys_modules folder.

Modules Modules Modules Modules
libSceAt9Enc.sprx libSceAudiodec.sprx libSceAudiodecCpu.sprx libSceAudiodecCpuDdp.sprx
libSceAudiodecCpuDtsHdLbr.sprx libSceAudiodecCpuHevag.sprx libSceAudiodecCpuM4aac.sprx libSceAvPlayer.sprx
libSceAvPlayerStreaming.sprx libSceBeisobmf.sprx libSceBemp2sys.sprx libSceCesCs.sprx
libSceFont.sprx libSceFontFt.sprx libSceFreeTypeOl.sprx libSceFreeTypeOptOl.sprx
libSceFreeTypeOt.sprx libSceJpegDec.sprx libSceJpegEnc.sprx libSceJson.sprx
libSceJson2.sprx libSceLibcInternal.sprx libSceNgs2.sprx libScePngEnc.sprx
libScePsmKitSystem.sprx libSceRtc.sprx libSceRudp.sprx libSceSystemGesture.sprx
libSceUlt.sprx libSceWkFontConfig.sprx libSceXml.sprx libSceDepth.sprx
libScePadTracker.sprx libSceMoveTracker.sprx

Caution

The above modules are required to run the games properly and must be dumped from your legally owned PlayStation 4 console.

Main team

Logo is done by Xphalnos

Contributing

If you want to contribute, please read the CONTRIBUTING.md file.
Open a PR and we'll check it :)

Special Thanks

A few noteworthy teams/projects who've helped us along the way are:

  • Panda3DS: A multiplatform 3DS emulator from our co-author wheremyfoodat. They have been incredibly helpful in understanding and solving problems that came up from natively executing the x64 code of PS4 binaries

  • fpPS4: The fpPS4 team has assisted massively with understanding some of the more complex parts of the PS4 operating system and libraries, by helping with reverse engineering work and research.

  • yuzu: Our shader compiler has been designed with yuzu's Hades compiler as a blueprint. This allowed us to focus on the challenges of emulating a modern AMD GPU while having a high-quality optimizing shader compiler implementation as a base.

  • felix86: A new x86-64 → RISC-V Linux userspace emulator

  • emudev.org: A network of people interested in the documentation, emulation, simulation and re-implementation of hardware near extinction . Belongs to my friend skmp and me (shadow) also a member of it

License