Once upon a time, when > was faster than < … Wait, what?

前端 未结 4 1500
梦如初夏
梦如初夏 2021-01-29 17:35

I am reading an awesome OpenGL tutorial. It\'s really great, trust me. The topic I am currently at is Z-buffer. Aside from explaining what\'s it all about, the author mentions t

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 17:59

    The answer is almost certainly that for whatever incarnation of chip+driver was used, the Hierarchical Z only worked in the one direction - this was a fairly common issue back in the day. Low level assembly/branching has nothing to do with it - Z-buffering is done in fixed function hardware, and is pipelined - there is no speculation and hence, no branch prediction.

提交回复
热议问题