I get less framerate on Vulkan than OpenGL4 with NVIDIA hardware and drivers
I've been developing in UE4/C++ on Funtoo (a variant of Gentoo Linux) using OpenGL 4 without any issues for a few years. On the Minimal_Default map I always get 120 FPS even on lower spec graphics cards with -opengl4. Since 4.21 switched to Vulkan as the default graphics API I decided to give it a shot. When I run the engine with Vulkan I'll get 75 FPS on the Minimal_Default map which is a bit unexpected.
Is this because Vulkan layer in UE4 not optimized or it's happening due to something else?
As a side note, I am running UE4 under X/i3wm/Compton, nvidia drivers version 415.25, vulkan loader version 188.8.131.52, and vulkan headers version 184.108.40.206.
asked Jan 06 '19 at 02:57 PM in Using UE4
OK! for anyone coming across this issue: I solved the issue by adding NVPTX to LLVM_TARGETS Extended USE flag inside /etc/portage/make.conf.
On my previous installation, I had this Extended USE flag enabled. But, I thought it was unnecessary. OK, what does it do?
It is being used by Mesa for I guess building shaders or something like that, though I am not sure what's the exact usage; so I had to:
Did a reboot and now I'm getting 120 FPS on -vulkan :)
Follow this question
Once you sign in you will be able to subscribe for any updates here