Proger #1 gProgress function controls window close and carries out the calculations for features like physics, particles, collisions etc.