Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Black screen on Adreno 618

Discussion in 'Graphics for ECS' started by GooRain, Sep 23, 2021.

  1. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Does Adreno 618 fully support Hybrid Renderer V2? Cause i get black screen with this gpu, when spawning entity with mesh.

    Edit: Adreno 619 too
     
  2. joelv

    joelv

    Unity Technologies

    Joined:
    Mar 20, 2015
    Posts:
    203
    It should be working. I have been running tests on Adreno 612.
    You need to ensure you have vulkan selected as the primary graphics API and also ensure the the scripting define ENABLE_HYBRID_RENDERER_V2 is set for the android platform as well (this define needs to be added for each platform).

    Additionally you need to build using a build configuration asset, not the old build window. Something that is true for all entity dependent projects
     
  3. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Thanks for the reply! Yes, I did all those steps and it works on most devices that support vulkan.

    Also made some tweak on Hybrid Renderer v2 package as i saw on some thread, to fix ARMv7 build rendering.


    #if UNITY_ANDROID && !UNITY_64
    [MethodImpl(MethodImplOptions.NoOptimization)]
    #endif
    public JobHandle UpdateAllBatches(JobHandle inputDependencies)
    {
     

    Attached Files:

  4. joelv

    joelv

    Unity Technologies

    Joined:
    Mar 20, 2015
    Posts:
    203
    That sounds very strange. Do you get any error messages or anything suspicious in the log if you attach adb?
     
  5. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Unfortunately, I can only get the logs tomorrow, but I can send you a video of the bug in private messages.
     
  6. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Good day!
    Works well on Samsung Galaxy A71, tested this weekend.
    We still have problems with Xiaomi Poco X3 NFC, seems like Xiaomi devices with Adreno 618, 619 have that problem.
    Attached today's logs.
     

    Attached Files:

  7. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Good day! Updating to Android 11 fixed the problem on Xiaomi Poco X3, but didn't help on Xiaomi Mi 9T. Different problem on that device, not black screen, but insta crash, when spawning entity.
    Attached the crash log
     

    Attached Files:

  8. joelv

    joelv

    Unity Technologies

    Joined:
    Mar 20, 2015
    Posts:
    203
    If the black screen is fixed with a system update then it is probably a vulkan driver issue sadly.

    Regarding the crash I could not find a crash callstack in the log. A filtered log and proper bug report is probably best here.
     
  9. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    Thank you very much for your help! We will most likely add Vulkan API version checking while loading the game.
     
  10. GooRain

    GooRain

    Joined:
    Nov 15, 2016
    Posts:
    13
    the minimum compatible vulkan api version is 1.0.38, right?