Repository navigation
Fixed
A pipeline cache that breaks the shaders is dropped, and no more "Preparing the shader..." note.
Reported on a PS5 with 2.2.1: in every game "Preparing the shader..." stayed in the bottom-left corner and the shader
never came. Deleting /data/genplus/cache/gpu-pipelines.bin fixed it. So the saved cache made every shader build fail
there (most likely one saved by an earlier version), and 2.2.1 started the failed build again at the next frame, for
good. 2.2.2 does by itself what deleting the file did:
- The cache file now carries the version of the app that wrote it. Another version's file, 2.2.1's included, is not
read, and the cache starts empty. If a build still fails with the saved cache (a shader's, or the app's own at
start), the cache starts over (the file is removed) and it is built again at once. - A shader that can't be set up even so is not built again frame after frame. The plain picture is shown and the
screen says so once, for a few seconds ("... could not be set up: the picture without a shader (Settings,
Shader)", in the five languages). It is tried again when it is picked again after another one, or when a game
starts.boot.loggives the reason ([gpu]lines, with Debug logs on). - While a shader is built (the first time only), the plain picture is shown with nothing written on the screen: the
"Preparing the shader..." note is gone.
Files
GenesisPlusGXPS5-v2.2.2.elf: send it to a payload loader on port 9021. The GPU renders by default; Settings,
SYSTEM, Renderer switches to the CPU.GenesisPlusGXPS5-v2.2.2-PPSA99921.zip: the app folder, used by Settings, SYSTEM, Updates.genplus-ps5-v2.2.2-src.zip: the source code.
Status
- 695 host tests pass.
- On the PS5 where 2.2.1's shaders had stopped (4K at 59.94 Hz, Streets of Rage 2, crt-easymode):
- 2.2.2 left 2.2.1's cache file unread, built crt-easymode in 0.01 s and saved a new cache. The game ran at
59.9 fps with no sound underruns, and the shader took 0.6 ms a frame. - At the next start it read that cache back.
- 14 shaders were built when picked, each in 0.13 s or less, crt-guest-advanced-ntsc's 19 passes included.
- 2.2.2 left 2.2.1's cache file unread, built crt-easymode in 0.01 s and saved a new cache. The game ran at
- Dropping a cache of 2.2.2's own that makes a build fail, and the failure message, have run only in the host tests.
Licences
Genesis Plus GX (non-commercial licence); the port's own code is MIT. libsmb2 and libnfs are LGPL-2.1-or-later. The
GPU build carries RADV/Mesa (MIT), the PS5 platform layer of PS5_PayloadSDK (GPL-3.0-or-later) and libretro's slang
shaders (many of them GPL); see the README's License and credits.
Credits
The PS5 layer follows PS5SX2 (Spyros). Port by
MisterTemaki.