Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wsot opened this issue Jan 15, 2013 · 2 comments
Open

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

wsot opened this issue Jan 15, 2013 · 2 comments
Assignees
Labels

Comments

@wsot
Copy link
Owner

wsot commented Jan 15, 2013

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.

@ghost ghost assigned wsot Jan 16, 2013
@oneacl
Copy link

oneacl commented Jan 17, 2013

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
Copy link
Owner Author

wsot commented Jan 20, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants