Quantcast
Channel: Questions in topic: "performance"
Viewing all articles
Browse latest Browse all 173

Why is alpha clipping in the Shader Graph way less performant than in a normal HDRP/Lit shader?

$
0
0
I have a test scene with a bunch of trees. If I use an HDRP/Lit shader with alpha clipping enabled for the leaves, it runs pretty decent. However, if I use a simple shader graph with alpha clipping, the performance tanks. ---------- I'm getting 8.3ms/frame with the lit shader vs 11.1ms/frame with the shader graph shader with 100 trees. This is all in the editor, not a build. ---------- Any idea what could be causing this performance difference and how to fix it? I want to give the leaves a custom shader graph, but the performance hit from the alpha clipping alone makes this not very viable for my scene. Here is a screenshot of my shader graph: ![alt text][1] [1]: /storage/temp/174931-alphaclippingshadergraph.png

Viewing all articles
Browse latest Browse all 173

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>