The app uses the Qt API QStorageInfo::bytesAvailable() method [1] every 1 
second.
For lack of a better API, one that would not require polling, we decided to go 
ahead with this one.
As Simon said, the polling only happens when the app is being actively used 
which means that even though it is indeed wasteful the amount of CPU used is 
not much in comparison to what the viewfinder uses in CPU and GPU when the 
camera app is up.

[1] https://doc-snapshots.qt.io/qt5-5.4/qstorageinfo.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1471906

Title:
  camera app is polling the file system every second

To manage notifications about this bug go to:
https://bugs.launchpad.net/camera-app/+bug/1471906/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to