I have heard many times that if statements in shaders slow down the gpu massively. But I also heard that texture samples are very expensive.

Which one is more endurable? Which one is less impactful?

I am asking, because I need to decide on if I should multiply a value by 0, or put an if statement.

  • Kissaki
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 month ago

    Link doesn’t load for me

    This post has no link. It’s a text post.

    • Rie@mastodon.gamedev.place
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      @Kissaki I saw this post on Mastodon where it only contains the title and a link to the Lemmy post (which didn’t work for me), I didn’t realize I was actually commenting on a Lemmy post by replying on Mastodon haha