Optimizing Real-Time Performances for Timed-Loop Racing under F1TENTH