Modified to have whole scene on one window (which allows it to run at 360 Hz), commented better