Open wsot opened 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.
This has been fixed in the latest development branch, and will be included in the next release.
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.