Страница 1 из 1

“saturate(x)” or “max(0, x)”?

СообщениеДобавлено: 22 июл 2016, 09:17
[bm]
результаты тестов на мобилках “saturate(x)” or “max(0, x)”?

Re: “saturate(x)” or “max(0, x)”?

СообщениеДобавлено: 22 июл 2016, 09:46
kripto289
[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.

Ссаное дермище эти мобилки. Миллиард устройств, миллиард говночипов. Сиди и мучайся, называется.
ps Как юзал saturate, так и буду.