I have done some benchmarking between using dynamic subrountines verses a set of if tests controlled by a uniform that I modify as needed. My initial tests show with 2 subroutines, 1 in the vertex shader and another in the fragment shader using a uniform is about 40% faster on an nVidia 580.
Has anyone else compared these?



Reply With Quote
