Is there a way to profile(test performance) of shaders?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Nuno Donato
:warning: Old Version Published before Godot 3 was released.

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 :frowning:

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?

thanks!

Check these tools Debugging Tools - OpenGL Wiki

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

eons | 2017-03-13 10:44