Search Unity

Some standard shader tests i ran

Discussion in 'Shaders' started by tawdry, Aug 29, 2015.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,357
    Hi guys just ran some test for myself to see how expensive each slot in the standard shader is.
    loaded up 6000 batches to stress my system.
    number of standard shaders in scene 1010. Each value is with only a texture in the measured slot.
    albedo or no texture only 16.5-17.2
    metal map 14.5-15.2 FPS
    normal 14-14.6
    height 14.9-15.3
    occlusion 16-17
    emission 16-17
    2nd albedo 15.5-16.2
    2nd normal 12-12.6
    All slots filled 9.4-9.7 with all different textures
    11.5-11.7 all slots filled with the same texture.
    Surprised that putting on a metal texture changed the expense.
    Surprised that emission is expensive.
    Surprised that a normal map is more expensive than a height map.
    Surprised by the expense of the second normal map
    Surprised that if you use all the same texture to fill all slots the shader is less expensive why is that?

    A standard shader running at 60+fps is 10 fps faster than a cutout shader which is 10 fps faster than fade or transparent shaders.600 shader used just albedio texture.
     
    Last edited: Aug 29, 2015