I found that Unity render game faster than orther 3D engine in real device ?
Does generated code write almost in C (NDK), and what have Unity done to optimize game performance?
Thanks you very much.
I found that Unity render game faster than orther 3D engine in real device ?
Does generated code write almost in C (NDK), and what have Unity done to optimize game performance?
Thanks you very much.
I’m no developer so take my words just as an opinion.
I was astounded exactly like you when I made my first test to see how many triangles it could manage with some good shaders on them.
I have the impression that Unity uses a lot of tricks that degrade the render quality of the engine, but you don’t notice these artifacts unless you are ill (like me).
If you examine with attention a scene you’ll notice that there are some pixel totally out of their place, a bit like burned pixels in an LCD screen.
Of course these pixels appear for only a single frame and only in some conditions so they are a very very little part of the screen.
Let’s say that your monitor has 2 million pixels, you have only some 100 pixels broken around and they change position at each frame, and you are playing so you really have no time to notice them.
Another thing is that probably (I am not sure) there is a real time mesh joining for objects using the same shader, so this reduces the number of drawcalls drastically in many usual conditions.
Also, I think the standard shaders are coded in a way that make them so quick by losing a bit of precision… that nobody care of ![]()
Hope this helps ![]()
I think so.
And I think render code is written in C (I’m not sure) , so it fast.
Does anyone have any idea?
Unity runs purely on the NDK level, no java suicide