x86 Vulkan driver option for various emulators not showing up (but dolphin works)
-
@movisman You might have better luck asking about the lr-beetls-psx's Vulkan usage on the libretro forums, the developers might give you a clue. From the docs:
Render: 'software' 'vulkan' and 'opengl'. The last two options will enable and/or speedup enhancements like upscaling and texture filtering. To use 'vulkan', the frontend must be using a Vulkan video driver first, or else it will default the 'opengl' renderer.
What I understand from the above is: if the frontend (RetroArch) used Vulkan, then the core will load it. You can check by launching RA with verbose logging from the runcommand launch menu and then looking in the log file (
/dev/shm/runcommand.log
). -
@movisman last I checked it's core specific ie you need lr-beetle-hw not just lr-beetle, not sure if there is an install module for that specific core, I think the one that's included with the setup script is just the regular beetle one. That may be why
-
Hi both,
Thanks a lot for both of your input on this, I really appreciate it and it's saved me a fair amount of time.
@mitu - exactly what you said seems correct, I studied the runcommand.log in verbose mode and can see it's automatically loading the Vulkan driver if available, as long as retroarch.cfg is set to use Vulkan as the video driver.
If I change retroarch.cfg back to 'gl', the runcommand.log changes accordingly to use OpenGL, as Vulkan is not available.
I'm not sure which of the two is necessarily better yet as still need to do a proper test, but it definitely seems to be engaging the correct driver. Also the 'slang' shaders apply with no issue and work fine when Vulkan is in use.
@herb_fargus - I thought that too looking at most posts on forums, etc, and was going to ask if a separate module could potentially be made available for the HW core. However, looking at the github page for libretro-beetle-psx (where the RetroPie script module builds from), and checking out some of their code, it looks like they have merged them, so it chooses Vulkan if available and falls back accordingly. I may be wrong on this but I don't think a specific core is required any more, especially after running the above tests and seeing a lot of Vulkan related stuff within their Github page.
Cheers!
-
@movisman said in x86 Vulkan driver option for various emulators not showing up (but dolphin works):
it looks like they have merged them, so it chooses Vulkan if available and falls back accordingly. I may be wrong on this but I don't think a specific core is required any more,
Just goes to show how often I use it! I vaguely remember hearing about this, this is good news indeed if that's the case. Retroarch has it's problems but I feel like they are going in the right direction
-
Yeah I think so too.
Doing a quick test, it seems using Vulkan on n64 isn't that great (at least for me), but to be fair i'm running a quad core i5 and HD4600 so not exactly amazing specs. I also need to fiddle with the settings to work out if any specific combination performs well when using the Vulkan driver. GL runs really well on defaults though, so for now i'll probably stick with that even if 2D stuff doesn't appear to look quite as nice. PSX I haven't noticed a huge difference between the two in performance, but again I can't ramp things up too much past 2x resolution because of my hardware. To be honest though i'm quite happy, at the mo just getting to grips with Linux and seeing what I can do with the x86 only emulators on the machine that I have. But Dolphin is way better on Vulkan, mainly because of that ubershaders option (which doesn't load for me on OpenGL).Cheers for the help.
-
@mitu Ha, ok so i'm a bit confused.
Looking at this file:
https://github.com/libretro/beetle-psx-libretro/blob/master/MakefileIt looks like when the emulator is compiled, it detects what the hardware is capable of and then compiles the 'hw' core appropriately, if for say, Vulkan support is detected or whatever.
Not too sure about libretro-parallel-n64 and this does the same thing.
Now, my vulkan driver is loading in RetroArch and all good there, but in the Beetle PSX emulator I am missing the core options such as Renderer, Adaptive Smoothing etc. So I guess I am not using HW mode after all. I need to check about the parallel-n64 emulator and if this has any specific HW options i'm not seeing.
Trouble is, my knowledge on this stuff is quite poor (but I am doing some research to learn), and so i'm not exactly sure what is going on when RetroPie-Setup is building these emulators from source.
Do I need to compile them from elsewhere in order for them to detect that I have OpenGL/Vulkan available and to present these extra options?
@BuZz - would you be kind enough to point me in the right direction with how your scripts build these emulators? I know I am on x86 and the main target is Pi, but am wondering if it could be compiling with different options or whatever so the HW stuff doesn't get enabled?
I'm just a bit confused here I think so hoping someone can clear things up for me.
Thanks again.
-
So I cloned the Beetle PSX .git and then ran a 'make' which generated the .so file, but it's the same as the one RetroPie installs. Definitely out of my depth with regards to working out how to get the HW core installed/detected when compiled!
-
@herb_fargus @mitu
Ok, so I figured this out (i think).I think that the RetroPie install script for lr-beetle-psx just does a basic make command which doesn't include OpenGL or Vulkan - to get the hardware core enabled for me I ran in a terminal:
git clone --depth=1 https://github.com/libretro/beetle-psx-libretro.git
I changed to the directory it created, and then ran a make command with some additional parameters which I found within https://github.com/libretro/beetle-psx-libretro/blob/master/Makefile :
make HAVE_VULKAN=1 HAVE_OPENGL=1
There are other parameters but i'm not too sure what they do.
This then compiled the core with the extra options. I then took the .so file it created and placed it into the /opt/retropie/libretrocores/lr-beetle-psx directory.
For now I just backed up the old one and renamed the HW one to match so there was no need to change emulators.cfg.Now when launching I have the full suite options available, software, opengl, and vulkan. And it definitely works properly now because the adaptive smoothing on Vulkan helps to smooth out the 2D elements better when raising the render resolution.
@BuZz - is it viable for me to raise an enhancement request on github to either have another optional emulator added for compiling the HW version, or somehow have the existing script detect what you have available and compile accordingly?
Thank you very much.
Cheers -
@movisman I may be up for including, but I will need to test/confirm it working myself first. I see you have a ticket open anyway - I will look at it if/when I have some time (or someone else can), but it's not going to a be a high priority for me.
-
Thanks a lot - yeah I thought i'd open an enhancement anyway as I did some reading and one of the Retroarch devs confirmed the SW and HW cores are identical, except the HW one has the additional options. Both are the same if you run in software mode:
https://www.reddit.com/r/emulation/comments/7hxke8/psa_psx_beetle_hw_is_absolutely_amazing/dquv1jp/So I figured it would probably be a useful enhancement enabling HW support at some stage - albeit I appreciate not high priority.
@psyke83 has kindly done a bit of work already to enable and i'm happy to test this out:
https://github.com/RetroPie/RetroPie-Setup/pull/2279Thanks again.
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.