+2 votes

So I was reading a few things on shader optimization and realized that conditional branches and reading from textures are very bad for performance. I was doing a lot of those :(

But I'm not sure how significant the impact is... how'd like to learn more about it. Is there a way to test this? The profiler doesnt seem to show any relevant info on shaders.

Or perhaps any suggestion of a stress-test I could create to see the impact in fps by tweaking shaders' details?

PS - also, is it ok to take optimization tips from other engines, since godot's shading language is different? or is it still all valid considering the GPUs are the ones doing the work?


in Engine by (286 points)

Check these tools https://www.khronos.org/opengl/wiki/Debugging_Tools

Also, http://editor.thebookofshaders.com/ could be useful for quick generic tests

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.