Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Graphics.RenderMeshPrimitives sometimes does not trigger drawcalls on IOS

Discussion in 'General Graphics' started by zhutianlun810, Nov 22, 2023.

  1. zhutianlun810

    zhutianlun810

    Joined:
    Sep 17, 2017
    Posts:
    165
    I am facing a very weird bug. I am using Graphics.RenderMeshPrimitives to render grass in my game. One batch has around 100 instances. Everything works fine on PC and Andriod. However, on IOS, my grass disappear at some random camera angles. From Framedebugger, I can see drawcalls have been triggered. But in XCode, the drawcalls are missing.

    It seems like Unity has sent the drawcall but the GPU injected these drawcalls. How can this happen?