Fixed choppy updates, more engine refactoring

Updates are now triggered a few millis before rendering.