# 쉐이더의 if문이 느린 이유

> Clean Markdown view of GeekNews topic #4507. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4507](https://news.hada.io/topic?id=4507)
- GeekNews Markdown: [https://news.hada.io/topic/4507.md](https://news.hada.io/topic/4507.md)
- Type: news
- Author: [ffdd270](https://news.hada.io/@ffdd270)
- Published: 2021-06-26T18:02:26+09:00
- Updated: 2021-06-26T18:02:26+09:00
- Original source: [blog.hybrid3d.dev](https://blog.hybrid3d.dev/2020-12-21-reason-for-slow-of-if-statement-in-shader)
- Points: 18
- Comments: 0

## Topic Body

쉐이더의 if문이 느리다는 사실은 쉐이더를 입문할 때부터 듣는 이야기인데요. 그런데 if문은 도대체 왜 느릴까요? GPU가 CPU에 비하여 분기 처리 비용이 높아서? 그러면 왜 높을까요?

위 해답을 대답해주는 정말 멋진 글입니다. 'ㅁ ' 자세한 내용은 전문을 확인해보세요! 한국인 저자분이 적어주셔서 언어의 장벽도 없습니다. 'ㅁ '!

## Comments



_No public comments on this page._
