Using binary search for wave visibility.
Calculating viewport only for focused body.