Add application window.
Fix weird updating behaviour when switching time-step policy bug.

Because the number of steps, and the delta time per-step were not cached prior to the updating, it was possible to override their values through a loop iteration, which sometimes leads to chaos.
Update application window while running.