Index | Thread | Search

From:
yaydn@protonmail.com
Subject:
Re: NEW WIP: emulators/pcsx2
To:
izzy Meyer <izder456@disroot.org>, "fiddle@disroot.org" <fiddle@disroot.org>, "bentley@openbsd.org" <bentley@openbsd.org>, "ports@openbsd.org" <ports@openbsd.org>
Date:
Sun, 09 Aug 2026 16:58:28 +0000

Download raw body.

Thread
På onsdag 22. juli 2026 kl. 15:52, skrev izzy Meyer <izder456@disroot.org>:

> On Wed, 22 Jul 2026 11:47:19 +0100
> Leah Rowe <info@minifree.org> wrote:
>
> >
> > Technically, you could run PCSX2 with w^x as there is an interpretive
> > emulator included within it; at least, I'm sure that's the case.
> >
> > But yeah, the entire emulator uses really advanced dynamic
> > recompilation for performance, to make all the games run.
> >
> >
> > Am 22.07.26 um 10:31 schrieb Stuart Henderson:
> > > On 2026/07/22 08:44, Leah Rowe wrote:
> > >> pcsx2 on openbsd would be pretty dope. w^x though?
> > >>>>> - USE_WXNEEDED and USE_NOBTCFI need a comment explaining what
> > >>>>> the problem is.
> > > hence the USE_WXNEEDED ^^
> >
>
> For the emulators/melonds port I maintain, enabling the W^X-style JIT
> recompiler when running a particularly hard to emulate game didn't
> really improve anything for me, performance-wise, on OpenBSD:
>
> https://github.com/melonDS-emu/melonDS/pull/2398
>
> You can try running a dump of your physical cart of "Animal Crossing:
> Wild World" with JIT on emulators/melonds and you'll still see
> stuttering frames and audio crackling even on a very fast amd64 CPU.
> This behavior is the same even without a JIT.
>
> I'm not too hopeful this type of JIT will improve anything for PCSX2 on
> OpenBSD, for this reason. Or- maybe the JIT on MelonDS is particularly
> inefficient and I'm completely off base here.
>
> The main reason I fixed up JIT support on MelonDS for OpenBSD was to
> simplify the port to be closer to upstream defaults. The W^X-type of JIT
> doesn't seem *that* beneficial to us on OpenBSD, performance-wise.
>
> OFC I could be mistaken...
>
> Thanks-
>
> Have a nice day.
>
> --
> iz (she/her)
>
> > I say mundane things
> > so the uninteresting
> > just might get noticed.
>
> izder456 (dot) neocities (dot) org
>
>

Not sure about the JIT decision, but could this get in before the
8.0-stable freeze? This is still the most recent stable version.

Rebuilt on current/amd64 with privsep.

$ cd /usr/ports/emulators/pcsx2/ && make clean=all clean && make patch build package test ; make port-lib-depends-check check-shlib-syms clean

===>  Regression tests for pcsx2-2.6.3
UpdateCTestConfiguration  from :/usr/ports/pobj/pcsx2-2.6.3/build-amd64/DartConfiguration.tcl
Test project /usr/ports/pobj/pcsx2-2.6.3/build-amd64
Constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
No tests were found!!!
LIB_DEPENDS wayland/libinput-openbsd not needed for devel/sdl3 ?
--

# TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all/ pkg_add -Dsnap -Dinstalled -r pcsx2
pcsx2-2.6.3->2.6.3: ok
--

Used sway and xwayland where needed for now.

Been using this a couple months now. Even got obs-studio to record a
session of Cowboy Bebop on sway/xwayland recently.(using '--platform
xcb' for both obs-studio and pcsx2[native crashes when needing hw accel
but show home screen and allow changing settings or the like when wayland
not explicitly disabled, otherwise full crash in native for now])

Have also built it both with and without the '-DWAYLAND_API=OFF'
CONFIGURE_ARGS. Builds fine. Think it could go into cvs tree and do
any subsequent changes in there?

Please let me know what more testing could get this over the finish line
for 80-stable.
--
yaydn