Repository navigation
PSGopher v0.0.3
The third release of PSGopher, Gopher64 as a native PlayStation 5 title (PPSA99280): frame
generation, two CPU recompilers, an RSP on a core of its own and its recompiler, a thread layout,
paks per port and an idle-thread skip. Everything new is a setting and off by default: with the
defaults the emulator runs as in v0.0.2. Still an early build: expect bugs.
Added
- Frame Generation (BENCH > Video; off by default): for a game that draws 30 or 20 pictures a
second, the pictures between its own are made, so movement is smooth at 60. Frame Generation
Method: MihawkGen (the default: Mihawk's trained network, by way of Crux2) or Optical Flow
(AMD FSR 3's optical flow with Crux2's passes), and Frame Generation Quality (Performance,
Balanced, Best). While pictures are made everything is shown one refresh later; a game at 60 is
left as it is. On a probe with much movement, each picture made from the one before and the one
after and compared with the real one: MihawkGen 38.5 dB (22.9 where it moved), Optical Flow 37.4
(21.8); Optical Flow tears things moving in front of others, MihawkGen does not. - CPU (BENCH > Emulation, and per game): Original (Gopher64's interpreter, the default),
Recompiler (native code with the interpreter's results, cycle for cycle) or Fast
Recompiler (native code without the instruction cache's timing: a game runs as at a higher
clock, and each instruction costs less to emulate). - RSP (BENCH > Emulation, and per game): Original (the default), Parallel (each RSP task
whole on a second core while the CPU goes on; not Gopher64's timing) or Recompiler (Parallel,
with each task in ParaLLEl-RSP's recompiled code). - Thread Layout (BENCH > Video): Cores of Their Own keeps the emulation thread on a core of its
own and the graphics driver's recording thread on another, as Crux2 does; and Compare Thread
Layouts on a probe (R1 in the probe list) measures both layouts on it. - Pak for each port (BENCH > Controllers, and per game): Auto, Controller Pak, Rumble Pak or None,
and Swap pak in the quick menu for player 1, so a game can have a Rumble Pak with Hotkeys off. - Idle Thread (BENCH > Emulation, and per game): Run (as before) or Skip, for a cartridge whose
idle thread only yields in a loop (NQ2E): at the highest clocks it no longer stutters.
Changed
- RSP Parallel ends a task at its own end (a shorter task ended late, and a game drew fewer frames).
- Gopher64 is at
a3b1b7402b60.
Tested
On a PS5: Frame Generation in development builds of this code, with both methods (Optical Flow made
2,777 pictures of 2,786 in a 30 a second game; MihawkGen gave clean, smooth movement); Fast
Recompiler (NQ2E at 60 pictures a second at 187.5 and 250 MHz, the CPU 2-9 ms a VI). Not yet run
on a console: Recompiler, RSP Parallel and Recompiler, Thread Layout, Pak per port and Swap pak,
Idle Thread Skip; MihawkGen's GPU cost at 8x is not measured. On a PC: the host tests, the
interface's pictures, the check of the settings' words, frame generation's module and wiring tests
(lavapipe), a game's own pictures from a savestate through the lockstep harness's renderer, and
the lockstep harness (Recompiler cycle for cycle against Gopher64's interpreter; Fast Recompiler
against its interpreted mode; the RSP recompiler task by task against Gopher64's RSP).