-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Scrolling is janky in gridView with local images #121525
Comments
This is not related to impeller, as all of the raster and GPU tasks are completed within budget. Instead its probably delays due to impage decompression that we should fix by moving the work to an I/O thread. |
Does it mean the same fix might resolve also #121351 ? Hope you guys can make time for it, smooth scrolling is everything for us |
@jonahwilliams this is so kind of you! 🙏 I just thought that I used imgs from Assets coz it was easier for me to create a demo. But we have janks with remote images as well. Do you want me to update the code? |
those are unlikely to be fixed via the same change, but you're certainly welcome to file a bug |
I made it #121547 |
I see a similar janky behavior upon scrolling. 121525.movCould be related to : #47380 stable, master flutter doctor -v
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Scrolling a gridView is janky on ios Impeller.
Tested on latest stable and master 3.8.0-15.0.pre.25, iphone 13 pro, iose 16.1.
Steps to Reproduce
Please run this example here by enabling images from Assets:
https://github.com/delfme/janky-gridview-scrolling
https://github.com/delfme/janky-gridview-scrolling/blob/0098f033403501ba8aee69121d5002fcf36c1686/lib/main.dart#L52-L64
Expected results:
Smooth scrolling.
Actual results:
See video below. Issue is hard to describe. Sometime janks are not noticeable although the feeling is not native-like, other time some jank occurs in a more noticeable way.
videozip_511.MP4
Profiling vid:
We can see initial jank frames. Then at 00:30:40 I started to scrolling a bit faster and noticed more jank frames.
Untitled.mp4
Flutter doctor:
[✓] Flutter (Channel master, 3.8.0-15.0.pre.25, on macOS 12.2 21D49 darwin-arm64, locale en-IT) [!] Android toolchain - develop for Android devices (Android SDK version 31.0.0) ✗ cmdline-tools component is missing Run path/to/sdkmanager --install "cmdline-tools;latest" See https://developer.android.com/studio/command-line for more details. ✗ Android license status unknown. Run flutter doctor --android-licenses to accept the SDK licenses. See https://flutter.dev/docs/get-started/install/macos#android-setup for more details. [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] Connected device (3 available) [✓] HTTP Host Availability
The text was updated successfully, but these errors were encountered: