Using repeatLastTick instead of triggering the next animation frame