Skip to content

Releases

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 19:50

This release was written by an AI agent (OpenHands) on behalf of the Pc4
maintainer.

Downloads

Platform File
Linux x86-64 Pc4-0.1.0-x86_64.AppImage
Windows 10/11 x64 Pc4-0.1.0-windows-x64.exe
macOS 11+ (Intel and Apple silicon) Pc4-0.1.0-macos-universal.dmg

Linux. chmod +x Pc4-0.1.0-x86_64.AppImage then run it. Nothing to
install and no root needed; it wants X11 or Wayland for the window, and the
Vulkan loader (libvulkan.so.1) plus an ICD from the GPU driver. Mesa's
software rasteriser works if you have no GPU.

Windows. Run the .exe directly. It is one file with the C runtime linked
in. Vulkan comes from vulkan-1.dll, which every current AMD, Intel and NVIDIA
driver installs. SmartScreen warns about an unsigned binary: More info, then
Run anyway.

macOS. Open the image, drag Pc4 into Applications. The bundle is ad-hoc
signed, not notarised, so the first launch needs a right-click then Open, or

xattr -dr com.apple.quarantine /Applications/Pc4.app

Vulkan runs on Metal through MoltenVK 1.3.0, bundled at
Pc4.app/Contents/Frameworks/libMoltenVK.dylib. Nothing has to be installed
and no environment variable has to be set.

The disk image holds a universal binary; the AppImage is built on Ubuntu 22.04
and needs glibc 2.35 or newer. Check the downloads against SHA256SUMS.txt.

What changed in this build

The Vulkan backend is no longer a stub. These assets were rebuilt from the new
code, so all three packages contain it:

  • the emulator opens a real VkInstance, picks a physical device (discrete
    first, software rasteriser last), creates a logical device and a graphics
    queue, and persists the driver's pipeline cache next to the shader cache;
  • two render passes and two graphics pipelines are created from SPIR-V that
    ships inside the binary (fullscreen presentation and guest geometry);
  • PM4 type 3 packets are decoded for real — header, opcode, payload length,
    INDEX_TYPE, NUM_INSTANCES, the SET_*_REG spaces and
    DRAW_INDEX_2 / DRAW_INDEX_AUTO — and draws become vkCmdDrawIndexed /
    vkCmdDraw calls with indices taken from the packet or from guest memory;
  • a frame is uploaded to a GPU texture, drawn by the presentation pipeline,
    copied back to host memory, and that is what the caller gets;
  • a machine without a Vulkan loader or device no longer pretends: startup logs
    the reason and falls back to the null GPU;
  • a draw now uses the game's own shaders. The vertex fetch shader, the vertex
    shader and the pixel shader are read from guest memory, decoded as GCN
    bytecode, translated to SPIR-V and turned into a pipeline for that draw, and
    the fetch shader runs to assemble the vertex buffer from the V#
    descriptors. Per-draw pipelines are cached by program hash.

Two new commands make the claim checkable:

pc4 --gpu-info        # instance version, device, driver, queue, memory heaps
pc4 --gpu-selftest    # draws on the GPU, reads the pixels back, exits non-zero on a mismatch

--gpu-selftest draws twice: once with the backend's own pipeline, and once
from GCN bytecode through the fetch shader, the translator and a pipeline built
from the translated modules. Both lines have to show lit pixels on the left half
and none on the right, on every package.

The release workflow runs --gpu-info and --gpu-selftest on Linux (against
the built AppImage, on llvmpipe), on Windows, and on the packaged macOS bundle
with its own MoltenVK. cargo test also runs the GPU self-test whenever a
driver is available.

A warmer, calmer interface

The desktop chrome was rewritten on top of the same backend. These assets were
built from that code as well, so all three packages show the new interface:

  • paper surfaces, an espresso navigation rail and a single terracotta accent;
  • the five top-level menus are now one overflow menu, next to Open game,
    Add folder and the run controls;
  • cover cards with a generated warm cover, format chip, compatibility dot and a
    play button, plus a list view with aligned columns;
  • an empty library explains what it accepts instead of showing a placeholder;
  • text colours are checked against their backgrounds in tests (WCAG AA, 4.5:1),
    so the contrast cannot silently regress;
  • an idle window shows — for frame rate instead of a meaningless number.

What this is

The desktop library, the loaders (homebrew ELF, SELF, a decrypted PKG or a
folder with the boot file), the HLE kernel, the interpreter, the loading-screen
preload and the settings UI all work. Add a game, press Play, watch the preload
run, read the log.

0.1.0 still does not draw a PS4 game, but the GPU path that will is in
place.
A draw now reads the vertex fetch shader, the vertex shader and the
pixel shader from guest memory, decodes the GCN bytecode, translates it to
SPIR-V, builds a pipeline from those modules and runs the fetch shader to
assemble the vertex buffer. --gpu-selftest does exactly that on each package
and checks the pixels that come back.

What is missing is the rest of the hardware: branching shaders, textures,
several render targets, blending and depth. No Sony firmware, BIOS or game data
is included or required, ever.