GPU Stage

Prepass/Early Z Pass

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/74bf4755-fda5-4da2-80a7-c941a6e74ad5/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b2de8cbc-6951-40a8-951b-756c80c1449c/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/94be7ebf-eea5-4779-ae89-3d523be951b2/Untitled.png

先进行了Z-Pass可以判断出有物体的地方不要render

Note:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3c5b1c9e-1943-49a8-9d97-bb18392471e3/Untitled.png

Nowadays, drawcalls have a much bigger impact than poly count in many scenarios.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/4a3537b7-b2aa-42bb-8617-6a24e7198646/Untitled.png

If you have multiple materials: stop - wait - render - and so on