wsot / openpdroid_support

A stub to allow github issues to be lodged against OpenPDroid
5 stars 0 forks source link

Camera lags when OpenPDroid is installed, regardless of settings #3

Open wsot opened 11 years ago

wsot commented 11 years ago

When OpenPdroid is installed, the phone lags a lot when the camera app is open.

This is due to the database being rapidly opened and closed by the PrivacyPersistenceAdapter. It hadn't occurred in the past because a bug in the PrivacyPersistenceAdapter (since the very original PDroid) prevented the 'idle database closing' code triggering. When this bug was fixed, the database started being opened and closed very rapidly - which is what it was designed to do, but kills performance.

An experimental fix is in the jb-mr1-release-openpdroid-devel branches, and cm10.1 and aokp jb-mr1 equivalents. This fix does not prevent the database from opening and closing (which will probably be modified in future) but rather adds a least-recently-used clearing cache to reduce database calls.

oneacl commented 11 years ago

I can confirm the lag in CM10.1 (galaxy nexus - maguro), however, on JR12 (Paul O'Brien)'s 4.2.1 it isn't, the camera works great.

wsot commented 11 years ago

This has been fixed in the latest development branch, and will be included in the next release.