Threadwell

Recent Notes

  • JohannesVuorine

    Aug 26, 2026

    • archive
    • twitter
    • johannesvuorine
  • Threads

    Aug 26, 2026

    • archive
  • iquilezles

    Aug 26, 2026

    • archive
    • twitter
    • iquilezles
Home

❯

Archive

❯

Threads

❯

iquilezles

❯

Hey, don't "optimize" conditional moves with mix()+step().

❯

@iquilezles What about conditions from sampled textures? If every pixel in a warp takes a different branch, ?: causes extreme divergence.

@iquilezles What about conditions from sampled textures? If every pixel in a warp takes a different branch, ?: causes extreme divergence.

Properties5
typearchive
sourcetwitter
date2025-02-09
tagsarchive, twitter, iquilezles
description@iquilezles What about conditions from sampled textures? If every pixel in a warp takes a different branch, ?: causes extreme divergence.

Feb 09, 20251 min read

  • archive
  • twitter
  • iquilezles

Source

  • URL: https://x.com/charles_grassi/status/1888624348057006315
  • Author: Charles Grassi (@charles_grassi)
  • Posted: 2025-02-09 16:21:48

Branch

1/ @charles_grassi

@iquilezles

What about conditions from sampled textures? If every pixel in a warp takes a different branch, ?: causes extreme divergence. Would mix() be better despite always computing both?

Related

  • Spine: 2025-02-09-hey-dont-optimize-conditional-moves-with-mix-step

Graph View

  • Source
  • Branch
  • Related

Backlinks

  • Hey, don't "optimize" conditional moves with mix()+step().

Created with Quartz v5.0.0 © 2026

  • GitHub