Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question FPS vs crash, Vulkan vs OpenGL

Discussion in 'Android' started by GoodAUB, Dec 3, 2021.

  1. GoodAUB

    GoodAUB

    Joined:
    Apr 1, 2017
    Posts:
    9
    Hi,

    I am finishing the prototype for my game and facing a performance problem. by the way, it is fully programmed using Bolt visual scripting.

    I would appreciate your support to identify the issue and solve the performance issue.

    - on Vulkan, it is working all the way but with FPS below 15.

    - switching to OpenGL, starts with good FPS (at 29) but, crashes on a certain stage of the game before the actual play happens.



    Thank you
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,456
    Is vulkan performance better if you disable depth in quality settings (or urp assets)
     
  3. GoodAUB

    GoodAUB

    Joined:
    Apr 1, 2017
    Posts:
    9
    I am using the built-in render pipeline with deferred shading rendering path.
    In quality setting, I am have the medium setting. I am not sure what do you mean by the depth.

    Was that helpful?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Your screenshot doesn't contain the actual stacktrace where it's crashing (Maybe try attaching full log). There's somekind of error with Bolt where it says "Specified method is not supported", but I am not sure if it's the cause of crash due stripped log. You could try asking here https://forum.unity.com/forums/visual-scripting.537/ regarding bolt error.
     
  5. GoodAUB

    GoodAUB

    Joined:
    Apr 1, 2017
    Posts:
    9
    Here is the full log. The crash starts on 10:21:42.701
    I would appreciate your help.

    I will definitely repost in the visual scripting forum.

     
  6. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    So it's crashing here

    Code (CSharp):
    1. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime Version '2020.3.23f1 (c5d91304a876)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
    2. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime Build fingerprint: 'Sony/G8142/G8142:9/47.2.A.10.107/172320177:user/release-keys'
    3. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime Revision: '0'
    4. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime ABI: 'arm'
    5. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime Timestamp: 2021-12-07 10:21:42+0300
    6. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime pid: 13123, tid: 13189, name: Thread-4 >>> com.DefaultCompany.NewUnityProject <<<
    7. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime uid: 10193
    8. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x204
    9. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime Cause: null pointer dereference
    10. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime r0 a926c400 r1 80000000 r2 00000002 r3 00002280
    11. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime r4 b34e6000 r5 0000000b r6 98f88d30 r7 98f88d30
    12. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime r8 b34e6000 r9 bac4e080 r10 bac79000 r11 bac4e080
    13. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime ip ffffc001 sp b817f46c lr 00000000 pc d9ff805c
    14. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime
    15. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime backtrace:
    16. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #00 pc 0013f05c /system/vendor/lib/egl/libGLESv2_adreno.so (EsxRenderBucket::IsBucketInvalidateRequired()+6)
    17. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #01 pc 000d3971 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::BindReadFramebuffer(EsxFramebufferObject*)+430)
    18. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #02 pc 000a3515 /system/vendor/lib/egl/libGLESv2_adreno.so (EsxContext::GlBindFramebuffer(unsigned int, unsigned int)+340)
    19. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #03 pc 00921bc8 /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (ApiGLES::BlitFramebuffer(gl::Handle<(gl::ObjectType)9>, gl::FramebufferRead, gl::Handle<(gl::ObjectType)9>, gl::Handle<(gl::ObjectType)9>, int, int, int, int, int, int, int, int, gl::FramebufferType, bool)+568) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    20. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #04 pc 009221dc /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (ApiGLES::BlitFramebuffer(gl::Handle<(gl::ObjectType)9>, gl::FramebufferRead, gl::Handle<(gl::ObjectType)9>, int, int, gl::FramebufferType, bool)+140) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    21. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #05 pc 00936b8c /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxFramebufferGLES::ReadbackDepthIntoRenderTexture(RenderSurfaceGLES*)+288) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    22. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #06 pc 0090a458 /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxDeviceGLES::ResolveDepthIntoTexture(ObjectHandle<RenderSurface_Tag, RenderSurfaceBase*>, ObjectHandle<RenderSurface_Tag, RenderSurfaceBase*>)+376) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    23. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #07 pc 00ea8ee7 /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+23174) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    24. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #08 pc 00ea976b /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+26) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    25. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #09 pc 00ea9733 /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxDeviceWorker::Run()+98) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    26. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #10 pc 00ea323f /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+2) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    27. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #11 pc 00781553 /data/app/com.DefaultCompany.NewUnityProject-FpI0g6n-5nsNgONLjRyJ3A==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*)+342) (BuildId: ae077060c0f180a10f45802c2846681bb7f9d4d3)
    28. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #12 pc 00072111 /system/lib/libc.so (__pthread_start(void*)+22) (BuildId: 21c007f226e7e948d1120c999422246a)
    29. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime #13 pc 0001dfb1 /system/lib/libc.so (__start_thread+24) (BuildId: 21c007f226e7e948d1120c999422246a)
    30. 2021/12/07 10:22:11.862 13123 13123 Error AndroidRuntime
    Seems it happens in GLES driver, if you can always reproduce this, we would love to get a bug report with repro project attached.
     
  7. GoodAUB

    GoodAUB

    Joined:
    Apr 1, 2017
    Posts:
    9
    Yes, it happens every time I build with OpenGL.
    Let's go ahead file a bug report.
     
  8. GoodAUB

    GoodAUB

    Joined:
    Apr 1, 2017
    Posts:
    9
    Hi ,

    Bug report# 1386901 was filed 20 days ago.
    How can I check the progress and how long would it take to get some clarity.

    I tried to cut out bits and pieces from the script to figure out and change the part that is crashing with no luck.

    I would appreciate your feedback
     
  9. jygao2010

    jygao2010

    Joined:
    Sep 12, 2017
    Posts:
    2
    has this problem has an answer?
     
  10. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,064
  11. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,751
    "Workaround: disable "compute skinning", or switch to forward rendering.
    User's visual scripts causes crash when spawning objects with compute skinned mesh using deferred rendering. Forward rendering or disabling compute skinning don't crash."