Be sure to keep tc.curFrame in sync.