(TTA) Add a termination condition when a certain number of frames is reached
(see new "-f" option of ttanetsim)