rename next_frame to next_frame_timer