mracko / MSFS-Mobile-Companion-App

Mobile Companion App for MSFS 2020
GNU Affero General Public License v3.0
362 stars 39 forks source link

Application Refresh Rate #33

Open Kurosar opened 3 years ago

Kurosar commented 3 years ago

Hello there,

It seems like the application freezes every second or so (I guess it's the rate at which the app collects data and refreshes the map/data).

So if you click a button on the app just before it refreshes the data, you experience a sort of "freeze" very briefly, which doesn't help to make the map/app feel smooth to use.

Would it be possible to maybe delegate the data/refresh part in a separate thread or something like that, so we don't get these freeze every seconds ?

mracko commented 3 years ago

The freezes you see are caused by a delay in data coming from the sim to the app. The app can read out data from the sim at a refresh rate of about 1.5 seconds. Thankfully, pushing data from the app to the sim doesn't have this problem. One way of solving this latency issue is to port the SimConnect part of the app to C++, but I have no C++ experience.