[bm] писал(а):результаты тестов на мобилках “saturate(x)” or “max(0, x)”?
PowerVR doesn’t have saturate modifier for ‘float’ and ‘half’ variables. That is, saturate modifier is available only for ‘fixed’ variables. This was the only case that saturate(x) was slower than max(0, x). For fixed variables, saturate(x) and x had same performance.
It seems like Tegra 3 has saturate modifier, additionally, it also has max(0, x) modifier in some specific cases. Tegra 3 might have very complicated architecture. The performance is unpredictable! However, saturate(x) was always better than or as good as max(0, x).
Adreno has saturate modifier. saturate(x) is cost free.
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 2