드로우 콜(draw call)을 줄여야 하는 이유
드로우 콜을 줄여야 하는 이유는, 각 드로우 콜마다 GPU에 제공되는 데이터가 적을 경우 CPU가 상태(쉐이더 등)를 설정하고 GPU에 데이터를 제출하기 까지 걸리는 시간 보다 GPU가 렌더링하는 시간이 훨씬 빠를 것이기 때문이다. 이 경우, 적은 데이터를 가진 드로우 콜들로 인해 CPU가 빠르게 GPU에 데이터를 제공할 수 없기 때문에 GPU를 충분히 활용할 수 없게되며, GPU가 유휴(idle) 상태에 놓여있는 시간이 많아진다. 그래서 각 드로우 콜에 많은 데이터를 담아 드로우 콜을 줄이고, GPU가 유휴 상태에 놓이지 않도록 하는 것이 중요하다. 참고 (https://stackoverflow.com/questions/4853856/why-are-draw-calls-expensive) First of..
2022.06.10