M
M
MishkaVNorky2019-06-06 15:22:00
C++ / C#
MishkaVNorky, 2019-06-06 15:22:00

Mobile shader, optimization bugs?

Hello.
For the unit, I'm making a sky shader, a lot of functionality with one shader.
And I noticed such a topic, if just the sky with painting = 59 fps
If I add clouds on top (just one 1k texture), the fps drops to 50. I don’t understand why, maybe because there are a lot of primitive checks like if else ?
What is wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2019-06-06
@GavriKos

if-else for shaders is bad, yes.
But the reasons for the crash can be very different - you should at least look at the shader code. Well, it's worth profiling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question