• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 … 23 24 25 26 27 … 117 Next »

How can I use Vulkan Video backend?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
How can I use Vulkan Video backend?
04-18-2017, 02:41 PM
#1
paladin4fan
Unregistered
 
Hey I'm looking for a method to run a game with Vulkan backend with dolphin-emu-master in LinuxMint 18.1.
I installed the amdgpu-pro driver, added the 'DRI' '3' in config file of driver.
I installed VulkanSDK through 'export' command as well. And I copied the lib and bin to /usr , too.
I can run DotA2 with Vulkan.
But when I ran a game it notice that 'Failed to create vulkan instance' and show a white screen in the window. Then I couldn't run any game with any backend until restarted the dolphin.
By the way, if I use the OpenGL backend in develop version of dolphin(dolphin-emu-master), my PC will crash when I start emulation.
Reply
04-18-2017, 09:48 PM
#2
Sonic2kk Offline
Junior Member
**
Posts: 16
Threads: 6
Joined: Mar 2015
I had the same issue, and it just didn't work. It seems like Vulkan support on Linux just isn't quite there yet, which is unfortunate. I spent a good month trying to get this to work, and eventually I had to move to Mesa 17.0.X (at the time, it was 17.0.3). This did not fix my Vulkan issue on Ubuntu 16.10, but it may work in Mint. At the very least, it'll allow you to use OpenGL.

I'd recommend using Mesa instead. amdgpu-pro in my experience was pretty unstable anyway, and it is still in beta. I had the OpenGL issue as well. I'm pretty sure this is a bug with the gpu-pro driver.

If you want to use Mesa 17.X.X, I recommend adding the Ubuntu X PPA to your system. Disclaimer: I personally have not tried this as I only have one really low powered laptop running Linux Mint but from what I have researched this should work. Maybe you should try it in a Virtual Machine first (I would do it, but I have no Mint VM handy).

Run the following commands to get the newest Mesa drivers (you will have to uninstall the gpu-pro driver unfortunately, but it isn't overly stable atm which is a shame).
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt update
sudo apt dist-upgrade
sudo apt-get install mesa-common-dev
sudo apt-get install mesa-vulkan-drivers # If you wish to use the Vulkan drivers

A reboot may be required. It was not required for me, but often times (especially with graphics drivers).

Some have had success in these threads with getting Vulkan on Linux to work: https://forums.dolphin-emu.org/Thread-is...-dev-build
Also check this: https://bugs.dolphin-emu.org/issues/9953

Hopefully this helped!
Find
Reply
04-18-2017, 11:34 PM
#3
paladin4fan
Unregistered
 
(04-18-2017, 09:48 PM)Sonic2kk Wrote: I had the same issue, and it just didn't work. It seems like Vulkan support on Linux just isn't quite there yet, which is unfortunate. I spent a good month trying to get this to work, and eventually I had to move to Mesa 17.0.X (at the time, it was 17.0.3). This did not fix my Vulkan issue on Ubuntu 16.10, but it may work in Mint. At the very least, it'll allow you to use OpenGL.

I'd recommend using Mesa instead. amdgpu-pro in my experience was pretty unstable anyway, and it is still in beta. I had the OpenGL issue as well. I'm pretty sure this is a bug with the gpu-pro driver.

If you want to use Mesa 17.X.X, I recommend adding the Ubuntu X PPA to your system. Disclaimer: I personally have not tried this as I only have one really low powered laptop running Linux Mint but from what I have researched this should work. Maybe you should try it in a Virtual Machine first (I would do it, but I have no Mint VM handy).

Run the following commands to get the newest Mesa drivers (you will have to uninstall the gpu-pro driver unfortunately, but it isn't overly stable atm which is a shame).
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt update
sudo apt dist-upgrade
sudo apt-get install mesa-common-dev
sudo apt-get install mesa-vulkan-drivers # If you wish to use the Vulkan drivers

A reboot may be required. It was not required for me, but often times (especially with graphics drivers).

Some have had success in these threads with getting Vulkan on Linux to work: https://forums.dolphin-emu.org/Thread-is...-dev-build
Also check this: https://bugs.dolphin-emu.org/issues/9953

Hopefully this helped!

Oh thanks. I think I should wait for the Vulkan API work. I've run games through Vulkan and amdgpu-pro successfully for one time, but when I reinstall my system and update the dolphin there is no way to run games through Vulkan.
And I can start emulation with amdgpu driver in Dolphin released version 5.0, which work in OpenGL API, but the Multi-core utilization of the OpenGL is too low.
Using DX12(Windows 10), I can run the game at 30FPS frame rate(4XMSAA+FXAA+Vsync), GPU load is only 50%,
In the case of using Vulkan only increased GPU load.
When using OpenGL, It just run at 30FPS without Vsync and MSAA.  That means there are some stuttering in playing.
Reply
04-20-2017, 04:31 AM
#4
paladin4fan
Unregistered
 
(04-18-2017, 09:48 PM)Sonic2kk Wrote: I had the same issue, and it just didn't work. It seems like Vulkan support on Linux just isn't quite there yet, which is unfortunate. I spent a good month trying to get this to work, and eventually I had to move to Mesa 17.0.X (at the time, it was 17.0.3). This did not fix my Vulkan issue on Ubuntu 16.10, but it may work in Mint. At the very least, it'll allow you to use OpenGL.

I'd recommend using Mesa instead. amdgpu-pro in my experience was pretty unstable anyway, and it is still in beta. I had the OpenGL issue as well. I'm pretty sure this is a bug with the gpu-pro driver.

If you want to use Mesa 17.X.X, I recommend adding the Ubuntu X PPA to your system. Disclaimer: I personally have not tried this as I only have one really low powered laptop running Linux Mint but from what I have researched this should work. Maybe you should try it in a Virtual Machine first (I would do it, but I have no Mint VM handy).

Run the following commands to get the newest Mesa drivers (you will have to uninstall the gpu-pro driver unfortunately, but it isn't overly stable atm which is a shame).
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt update
sudo apt dist-upgrade
sudo apt-get install mesa-common-dev
sudo apt-get install mesa-vulkan-drivers # If you wish to use the Vulkan drivers

A reboot may be required. It was not required for me, but often times (especially with graphics drivers).

Some have had success in these threads with getting Vulkan on Linux to work: https://forums.dolphin-emu.org/Thread-is...-dev-build
Also check this: https://bugs.dolphin-emu.org/issues/9953

Hopefully this helped!
Hey my friends, I have successfully run the game through the Vulkan backend !
I install the mesa driver and mesa vulkan driver but the performance is too low that I get 15 FPS in Left 4 Dead 2.
And I uninstall the mesa-vulkan driver and libvulkan1, and reinstall the vulkan SDK 1.0.46 through "export" path and reinstall the amdgpu-pro.
And I upgrade my dolphin-emu to
5.0+git-r201704191418-6997515-32~ubuntu16.04.1.
Then I can run games through Vulkan API. The performance is higher than OpenGL but not as high as the vulkan api in Windows10.
I can get a 30FPS frame rate with vsync and 2xMSAA now.
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma