I guess you may not have spent much time watching birds or other wild animals navigate their environments. Many birds routinely fly at maximum speed through trees, dodging branches, leaves, and twigs that would knock them off course and lighting suddenly on small limbs or branches that you can't even see until you are deep into the foliage. Maybe they can see them from outside the leaf envelope. It would explain how they are able to navigate such a cluttered environment in shadow at full speed. Birds may crash into window glass regularly but their innate understanding of navigation around and through natural obstacles is pretty remarkable.
Watching drone racing videos gives an idea of just how complicated the task turns out to be - flitting through narrow openings at speed and zipping around obstacles that suddenly appear. Birds were doing this millenia before anyone programmed a drone.