Is Yabasanshiro emulator coming on retropie?
-
@myzar and if you have it, the runcommand config?
EDIT: I see there are a few dependencies here on the QT libraries. Maybe you'd want to share the build script/steps then indeed?
-
its basically
cd /yabause/yabause mkdir build cd build cmake ../src
and any other options you might want you'll need to install dependencies and git clone the firebase-cpp-sdk into src/qt depending where you are when you execute it ie if you where in the first yabause directory you woud do a git clone https://github.com/firebase/firebase-cpp-sdk.git -b v6.11.0 yabause/src/qt/firebase-cpp-sdk
-
@myzar Well, after installing
libqt5opengl5
,libqt5multimedia5
andxinit
I can get something on my screen after exiting ES and runningxinit ./yabasanshiro
on the folder where I have the binary you shared, but that's as far as it goes for now. I'll look more into it tomorrow. -
@pjft said in Is Yabasanshiro emulator coming on retropie?:
xinitI can get something on my screen after exiting ES and running xinit ./yabasanshiro
Hopefully can be run without an x server 😬
-
@quicksilver Fingers crossed, I'm just making things up as I go :)
So, I got it to boot Die Hard Arcade. Key things:
- Don't enable FPS, it'll crash. Likely OpenGL related.
- Tweak the video options as applicable to get something presentable for you. Right now it shows only at a quarter of the screen. Change resolution to "original" and then window size and whatnot to something that works for you to try to get it to show where you want it.
- The colors work fine, actually. I'm not sure if you applied the color-fixing patch @myzar ?
- The performance wasn't... great, at least for me. Likely because of xinit. It felt slightly slower than the current lr-core performance.
So that's where I leave it for today.
-
@pjft said in Is Yabasanshiro emulator coming on retropie?:
@quicksilver Fingers crossed, I'm just making things up as I go :)
So, I got it to boot Die Hard Arcade. Key things:
- Don't enable FPS, it'll crash. Likely OpenGL related.
- Tweak the video options as applicable to get something presentable for you. Right now it shows only at a quarter of the screen. Change resolution to "original" and then window size and whatnot to something that works for you to try to get it to show where you want it.
- The colors work fine, actually. I'm not sure if you applied the color-fixing patch @myzar ?
- The performance wasn't... great, at least for me. Likely because of xinit. It felt slightly slower than the current lr-core performance.
So that's where I leave it for today.
I did apply the color fix and it needs xinit starting xorg and all qt5 deps , it's an x app , but atleast in daytona and virtuaracing is faster for me, did you enable autoframeskip and switch to dynarec sh ?
-
@myzar I didn't touch those options but will try them out tomorrow, thanks!
What's your runcommand like?
Also, I struggled to map the sdl joystick inputs, but it might have been my mistake.
Thanks for putting this together!
-
@BuZz said in Is Yabasanshiro emulator coming on retropie?:
Please can we drop this. This thread is beginning to feel like it's a personal attack
The post above mine made it looked like "libretro" (me) was pilfering upstream code while not contributing, while tbh i would just be glad if i could delete any trace of that core because it's just a thorn in my side, so i think clearing up any kind of misunderstanding was important. For the past year i've even been recommending people to use the standalone version instead of the libretro core.
Anyway, the original assumption that 3.2 would solve something with pi4 is wrong, 3.2 is about dma timings, and judging by the number of reports of regression on yabasanshiro's discord/github, things aren't looking too good even with latest binary (3.2.3), and available sources are even more behind (3.2.1)
-
@pjft said in Is Yabasanshiro emulator coming on retropie?:
@myzar I didn't touch those options but will try them out tomorrow, thanks!
What's your runcommand like?
Also, I struggled to map the sdl joystick inputs, but it might have been my mistake.
Thanks for putting this together!
this is my command line
yabasanshiro = "sudo xinit /opt/retropie/emulators/yabasanshiro/yabasanshiro --autoframeskip=1 --bios=/home/pi/RetroPie/BIOS/saturn_bios.bin -a -f -i %ROM%"
and this is my ini
-
the only other thing I can offer up is i seen some warning relating to gcc on the pi. The android build is using gcc5
-
Thanks @myzar . Based on this, I got a few more details that might help others.
For anyone trying this on regular RetroPie:
- First, plug in a mouse in order to set up your controls in the menu. If the top menu doesn't work, remove the
-f
flag from the previous runcommand suggestion. - You'll need to set a proper resolution and window height for your screen. In my case - 1080p - what worked best was 832x624 as window and screen resolution in the settings. It still crops a bit of te screen, but form all the ones I tried it's the one that shows as close to full screen and showing most of the screen as well in it. And then "Fit to Window" and "Start in Fullscreen".
- The config file is in
/root/.config/yabause/qt/yabause.ini
. - In my specific case, using the Saturn BIOS and Dynarec crashed the game I tested. I ended up ticking the "Emulate Saturn BIOS" or something and it works well.
- Set resolution/rendering mode to "Original", so it doesn't render the game in a higher resolution than it should (performance reasons).
- If you want to be able to exit the emulator via your controller, the best I could do was to set up xboxdrv, map one of the buttons (home) to a key (Escape, for instance) and then in the emulator menu, go to Shortcuts and set that button/key as the shortcut to Quit. This part was not very fun because of my lack of experience with xboxdrv. Not looking forward to repeating this.
Here's my config file - you'll need to adjust the controls for you:
I'll test this more in the coming days, but so far so good and it is a good improvement over the libretro core - even if just for the auto-frameskip working better. Thank you all who helped get this to this stage!
- First, plug in a mouse in order to set up your controls in the menu. If the top menu doesn't work, remove the
-
Stupid question, but where did you install the libqt5 files from? For me the standalone will neither run nor compile - and when i try to compile an inability to find the qt5webenginewidgets/qt5OpenGL seems to be the cause.
-
sudo apt-get install libqt5opengl5-dev if compiling else libqt5opengl5
-
@mechafatnick libqt5multimedia5 is also needed at runtime at least.
-
Thanks folks!
It's weird - I've definitely got the latest version of libqt5opengl5-dev, but its still saying it cant find 'a package configuration file provided by
"Qt5WebEngineWidgets"'(I gather building the qt5webengine from scratch is a bit of a ball ache)
-
@mechafatnick said in Is Yabasanshiro emulator coming on retropie?:
Qt5WebEngineWidgets
sudo apt install git cmake qtbase5-dev qtmultimedia5-dev libqt5opengl5-dev libopenal-dev libsdl2-dev
-
This post is deleted! -
basic build instructions anything else will be dependency related I had to do some python tweeks on mint
sudo apt install git cmake qtbase5-dev qtmultimedia5-dev libqt5opengl5-dev libopenal-dev libsdl2-dev git clone https://github.com/devmiyax/yabause.git cd yabause git clone https://github.com/firebase/firebase-cpp-sdk.git -b v6.11.0 yabause/src/qt/firebase-cpp-sdk mkdir build cd build cmake -DYAB_PORTS=qt ../yabause
-
@pjft i've recompiled it fixing the osd crash , now we can use the osd to see the fps if we want
https://mega.nz/file/ahcHVa5S#z0uEpLSW6atCXPbkzXE4dFXulM6xMzYMCellZw1Ji5A
-
@myzar I actually thought it was related to the OSD plugin that was selected - I changed it back to OpenGL or something, though I admit I didn't test it out. Thanks!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.