这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix picture raster cache throttling #13710

Merged
merged 1 commit into from
Nov 21, 2019
Merged

Conversation

liyuqian
Copy link
Contributor

@liyuqian liyuqian commented Nov 6, 2019

Previously, we're also counting the pictures that are already raster
cached.

This fixes flutter/flutter#44252 and helps
solving the GPU thread issue of flutter/flutter#43083

flutter/flutter#45050 is a performance test in the framework repo to reveal this bug.

Previously, we're also counting the pictures that are already raster
cached.

This fixes flutter/flutter#44252 and helps
solving the GPU thread issue of flutter/flutter#43083
Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@flar
Copy link
Contributor

flar commented Nov 14, 2019

So the limit was 2 cached pictures period rather than 2 newly rasterized per frame. Good catch.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you file a bug that tracks authoring a test for the raster cache please? The TODO in the PR message may get lost.

liyuqian added a commit to liyuqian/flutter that referenced this pull request Nov 17, 2019
This will catch issues like
flutter#44252, and this test is
inspired by the `list_demo` sample app in
flutter#43083 (comment)

This is tested locally on a Moto G4 before and after the fix
flutter/engine#13710

The `average_frame_rasterizer_time_millis` of this test drops from
~5.4ms to ~4.9ms after that fix.
@dnfield
Copy link
Contributor

dnfield commented Nov 20, 2019

@liyuqian I think GitHub closed this on you against your actual wishes because of how you worded the body of flutter/flutter@a32fc98?

@dnfield dnfield reopened this Nov 20, 2019
@liyuqian
Copy link
Contributor Author

Ah yes. Thank you very much @dnfield !

@liyuqian liyuqian added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 20, 2019
@liyuqian liyuqian merged commit 9e6d360 into flutter:master Nov 21, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 21, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Nov 21, 2019
git@github.com:flutter/engine.git/compare/7a77e3625dd1...a388398

git log 7a77e36..a388398 --no-merges --oneline
2019-11-21 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/linux-amd64 from VHWsK... to zgJ75... (flutter/engine#13957)
2019-11-21 bkonyi@google.com Roll src/third_party/dart 867a6e0e52..aa2b3a5eaa (15 commits) (flutter/engine#13955)
2019-11-21 30870216+gaaclarke@users.noreply.github.com Made the thread checker print out the thread names on Apple platforms. (flutter/engine#13943)
2019-11-21 liyuqian@google.com Fix picture raster cache throttling (flutter/engine#13710)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC aaclarke@google.com on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raster cache throttle is calculated incorrectly
6 participants