using delta time for update instead of fixed time