Simplify window updates in main loop.