resolution is half the window size