This fork targets macOS with the Metal backend. Start here.
- Building on macOS: requirements, build and test commands, and how the app bundle and release assets are made.
- Running games on macOS: GUI and command line, game layouts, controls, caches and the data folder.
- macOS configuration: environment variables for the host, memory, shader translation and diagnostics.
- Metal backend: how the Metal renderer is structured, with pointers into the source.
- Guest memory for the two-process split: how a second process maps guest memory, and what it cannot see yet.
- Testing on macOS: the .NET and Python tests, CI, and the game harness scripts.
- macOS troubleshooting: startup, performance and rendering problems and what to check.
- Performance display: the FPS, CPU and GPU display, its modes and shortcuts.
- Release use: how to prepare and publish a release with
scripts/release.py. - Game patches: how to install and write PS-Game-Patch XML patches.
- Live debug server: a TCP server that lets an external process inspect and control a running guest.
- Import results and diagnostic logging: import-result warnings and the related diagnostic switches.
- Environment variables not on the GUI options pages: the full list of hidden
SHARPEMU_*variables. Many entries are Vulkan-only or Windows-only. - Aerolib catalog: look up export names and NIDs with
scripts/aerolib_catalog.py. - Bink 2 bridge: how Demon's Souls plays Bink 2 video.
- Guest write watch: optional tool that finds managed code that writes guest memory.
- Guest ownership trace: inspect memory at selected guest import calls with a JSON plan.
These guides describe tracing in the Vulkan renderer, which the macOS build does not include. Parts of some of them are renderer-neutral.
- Buffer parameter tracing: compare CPU backing bytes with a RenderDoc buffer.
- Image clear tracing: trace color-target and volume clear decisions and take draw snapshots.
- Image memory diagnostics: image cache memory counters and failure reports.
- Indexed draw tracing: trace indexed draws of a chosen index count.
- Mesh draw tracing: trace mesh draws and permutation compiles.
- Visibility result tracing: trace occlusion query records.
- Shader rejection diagnostics: why compute dispatches and draws are rejected, and
SHARPEMU_STRICT_COMPUTE.
- Windows crash capture: crash dumps from the launcher.
- Native function tracing: a temporary diagnostic that records native function entry and return hits.