The 다가 clause is what you kept at until it drained you, and 지치다 is being worn out. Waiting is by far the commonest cause in these lines: tired of waiting, waiting and waiting until they gave up, one person still hyped while the other has clearly had enough. It also covers chasing someone in a game, watching for too long, and practising action scenes until you need a break.