Bad Tracking performance while driving

Hi there,
I’m facing a very slow response & bad tracking presentation of the chevron after a few km of driving.
Can someone guide me on how to write efficient code for android to track the driving with the tomtom API & liberties?
Thank you
Yalon