Could someone help me debug these rendering artifacts?

He is talking about the white squares randomly appearing.