Skip to content

[Android][PlatformView] Slow/Choppy Screen Animations After Flickering Fix (Regression) #162428

Description

@delfme

Steps to reproduce

This issue stems from #162310 where a previously identified flickering problem was addressed. However, a new issue has surfaced: screen animations become slow and choppy when a platform view is present.

Steps to reproduce:

The attached videos demonstrate the issue in action.

Additionally, here’s relevant information from a previous triage, including extra videos and the commit that may have caused the regression:
#162310 (comment)

Expected results

Screen animation should be faster and smooth.

Actual results

Screen animation is slow and choppy.

Code sample

Code sample

flutter-native-text-input_repo.zip

Screenshots or Video

Screenshots / Video demonstration

With 3.27.3
Animation is slow and janks occur. Note: on real phone is sue is more evident than the screen capture.
https://github.com/user-attachments/assets/2ce78691-8260-4434-923b-fcf7af517503

With 3.24.5
Animation is smooth and the speed is accurate.

animation.3-24-5.mp4

Other videos available here:
#162310 (comment)

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
Flutter (Channel [user-branch], 3.27.3, on macOS 14.2.1 23C71 darwin-arm64, locale en-IT)
    ! Flutter version 3.27.3 on channel [user-branch] at /Users/delfme/Development/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (5 available)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: platform-viewsEmbedding Android/iOS views in Flutter appse: device-specificOnly manifests on certain devicese: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions