Update loop with delta time