mSparks43 / XPlane-11-AutoATC-plugin

C/C++ Source code for Xplane AutoATC plugin
GNU Lesser General Public License v3.0
16 stars 7 forks source link

android battery drain #30

Closed mSparks43 closed 4 years ago

mSparks43 commented 5 years ago

A couple of times now i have noticed the app drawing an excessive amount of battery after it is dropped into the background.

For now the workaround is just to close it when done. I suspect when it goes into the background something is causing one of the maintenance loops to except before it pauses. I did recently fix a load of crash issues related to the app resuming from deep sleep.

Will investigate.

mSparks43 commented 5 years ago

Definitely looks like at least some threads are being duplicated and left running. Resolution in next update.

mSparks43 commented 5 years ago

And others are doing unnecessary work when they are out of context. Fixing these should give some nice performance improvements.