Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Don't "optimize" conditional moves in shaders with mix()+step(). Parent comment
> it's also concerning that we have syntax where an if is some times a branch and some times not.
It would be more concerning if we didn't. We might get a branch on one GPU and none on another.
The best way is to profile the code. Time is what we are after, so measure that.
> it's also concerning that we have syntax where an if is some times a branch and some times not.
It would be more concerning if we didn't. We might get a branch on one GPU and none on another.