ubports / unity8

The operating environment for everywhere. Lomiri development has moved to https://gitlab.com/ubports/development/core/lomiri
https://lomiri.com/
GNU General Public License v3.0
722 stars 99 forks source link

qml: Even faster blurred Drawer #454

Closed fredldotme closed 1 year ago

fredldotme commented 1 year ago

The BackgroundBlur component used to be busy on redrawing the blur source whenever the source rectangle changed. This turned out to be the main reason for weaker devices to have problems drawing with the blur shader enabled.

Instead of changing the source rect based on the Drawer's drag distance, do the following:

Fixes blurred Drawer performance on more devices as tested on the JingPad, as well as the weird jelly effect during drag which was introduced in the last performance changeset.

maciek134 commented 1 year ago

Verified on the Nexus 5 and 4, no noticeable lag, I guess the only slower device could be the BQ4.5? Similar CPU with more L1 cache than N4, but much slower GPU.

maciek134 commented 1 year ago

CI seems to be failing with Target 'tests/CMakeFiles/xvfballtests.dir/all' not remade because of errors., but no details and no other failed tests.