Window settings.
Main sim loop.