Search Unity

UpdateDepthTexture smashing performance...

Discussion in 'Shaders' started by spraycanmansam, Aug 29, 2013.

  1. spraycanmansam

    spraycanmansam

    Joined:
    Nov 22, 2012
    Posts:
    254
    Hi all,

    Sorry if this is considered a double post, but it's hard to pick which section to post these questions sometimes.
    After searching a lottt, it seems others are having the same problem and I haven't found any explanations/solutions.
    In a nutshell, anything that signals to Unity that it needs to access the depth buffer, starts the 'UpdateDepthTexture / UpdateDepthNormalsTexture' processes which absolutely smash! performance as mentioned in the thread below.

    See here ---
    http://forum.unity3d.com/threads/197455-Poor-performance-of-UpdateDepthTexture-why-is-it-even-needed


    Thanks for your time,
    Sam