Construct the view window locations only once
Added SnapshotGeneration to optimize the performance of the calculations but losing some precision.
Modified the main to be more performant with the new SnapshotGeneration and show performance information.