Comment 4 for bug 1471906

Revision history for this message
Florian Boucault (fboucault) wrote : Re: camera app is polling the file system every second

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