simple delta time loop