- Messages
- 533
- Country

Hello,
I have a simple gauge that uses the GPS terrain and draws a compass rose on top of it. It works fine, but something bothers me: the terrain image (generated by the GPS) is refreshed only once per second, while my compass rose is refreshed 18 times per second, like any other gauge. Consequently, the rose and the terrain animations are not synchronized.
I can change my code to have the compass rose drawn only once per second, but I would like to have it refreshed exactly when the terrain image is refreshed. Is there a way to know when the GPS terrain is drawn?
Or do you know any other way of synchronizing drawings?
Thanks for any help,
Eric
I have a simple gauge that uses the GPS terrain and draws a compass rose on top of it. It works fine, but something bothers me: the terrain image (generated by the GPS) is refreshed only once per second, while my compass rose is refreshed 18 times per second, like any other gauge. Consequently, the rose and the terrain animations are not synchronized.
I can change my code to have the compass rose drawn only once per second, but I would like to have it refreshed exactly when the terrain image is refreshed. Is there a way to know when the GPS terrain is drawn?
Or do you know any other way of synchronizing drawings?
Thanks for any help,
Eric

