Hardware clearing depth buffer
Hello community,
I have a problem with clearing depth buffer on the camera.
I noticed a 10fps drop on the device and tried to find the reason. I found that the problem was in clearing depth buffer, so I tried to turn it off just to check if it'll brake anything.
I was so surprised to find that everything is ok on the device, but when I tried playing in editor, I saw that there are a lot of issues because of that. So I guess, my device might have some hardware clearing depth buffer - I just can't turn if off for some reason, but I have +10fps when I set camera clear flags as "Don't Clear" without any problems.
So I'm wondering if there is any way to check if depth buffer is cleared from script and if not - clear it manually.
Your answer
Follow this Question
Related Questions
Grey/Dark line between two cubes 1 Answer
Random performance inconcistency in Unity with ARCore on Android 0 Answers
How to change camera on Android? 1 Answer
CAMERA FOLLOW MOVING PLAYER PROBLEM ? 0 Answers
Take screenshot with no lags Android 0 Answers