Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can you tell Android how to support Vulkan in UE4.12?

Can you tell Android how to support Vulkan? For example: how to set up, as well as NDK, SDK, JDK, ANT version. Now there is no documentation on this aspect.

Product Version: UE 4.12
more ▼

asked Jun 03 '16 at 08:11 AM in Using UE4

avatar image

1 2 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It is best to use the CodeWorks for Android installer we include in Engine/Extras/AndroidWorks in 4.12. This includes NDK 11c which has the Vulkan headers. It also installs JDK 1.7 and ANT 1.8.2 along with SDK for 19 and 21.

To use Vulkan you will need to use GitHub source release. Turn on the Support Vulkan flag in Android Project Settings. At the moment this works on S7 and will work as new drivers are released for Android N previews.

If you have a Vulkan PC driver you can turn on the Vulkan Mobile Preview in PIE in the editor experimental settings.

more ▼

answered Jun 07 '16 at 07:00 PM

avatar image

Chris Babcock STAFF
1k 11 110 35

avatar image Fisher007 Jun 08 '16 at 04:12 PM

Hi Chris! As 4.12 supports Vulkan, do we still need the Github source? I can't enable it in the Android settings, it is grayed out and says it requires it, but maybe I did something wrong.

Cheers, Fisher

avatar image Chris Babcock STAFF Jun 08 '16 at 06:10 PM

4.12 binary from launcher has the UE4-VulkanRHI* libraries precompiled but the "Support Vulkan [Experimental]" checkbox in Android Project Settings is grayed out. You can either use a GitHub build which will ungray it, or manually edit the DefaultEngine.ini in your project's Config directory and add "bSupportsVulkan=true" to the [/Script/AndroidRuntimeSettings.AndroidRuntimeSettings] section.

avatar image Fisher007 Jun 09 '16 at 03:07 PM

Adding manually helped, now it is checked. But how do I know if my S7 actually running using Vulkan? I don't see any difference in quality or performance. (I have downloaded the new CodeWorks and switched all the paths in the Android SDK settings)

Forgot to mention that I'm trying to use it with the Gear VR if that matters.

avatar image Chris Babcock STAFF Jun 09 '16 at 04:41 PM

Look in the logcat for "Compiled with Vulkan support" and "Vulkan driver available, will use VulkanRHI" or "Vulkan driver NOT available, falling back to OpenGL ES" or "Vulkan library NOT detected, falling back to OpenGL ES".

I had another look at the code and you likely need to use GitHub after all. It won't compile in the check for Vulkan I believe as built in the binary. If you don't see the "Compiled with Vulkan support" or "Compiled with OpenGL ES support only" then this is the problem.

avatar image Fisher007 Jun 10 '16 at 10:29 AM

Yep, there is no mention of Vulkan in the log file.(Phonememory..\MyProjectName\MyProjectName\Saved\Logs) So I guess it is indeed not using Vulkan, which is sad as I'm not able to compile the Github build (Visual studio gives errors) and I'm not really familiar with VS or the coding side of the engine. But this is really strange, why state that Vulkan is included in 4.12 if it isn't? Is there any plans to add to the precompiled version?

avatar image Chris Babcock STAFF Jun 10 '16 at 06:51 PM

Vulkan is experimental, but it looks like the detection code was left wrapped with PLATFORM_ANDROID_VULKAN in 4.12. This will be corrected in 4.13.

avatar image Fisher007 Aug 09 '16 at 02:57 PM

Hi Chris,

Can you confirm that it has indeed corrected in 4.13? I can't find it in the changelog.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question