Skip to content

iOS VSyncClient's displayRefreshRate always return the maximum rate #185759

Open

Description

@hellohuanlin

Steps to reproduce

Spot by Gemini during a code review: #185737 (comment)

This was introduced by https://github.com/flutter/engine/pull/52104/changes#diff-ca0ba764dd3a3c6d10dfd05ea010d65973a4882b7f2549352367b97944a1fd8fL160-R151

Original code uses autorelease on DisplayLinkManager, which keeps it alive until next runloop. The new code could dealloc it eagerly since CADisplayLink doesn't retain the target.

Expected results

NA

Actual results

NA

Code sample

NA

Screenshots or Video

NA

Logs

NA

Flutter Doctor output

NA

Activity

  1. cbracken commented on Apr 29, 2026

    @cbracken
    Member

    The refactor that led to the final breakage was flutter-team-archive/engine#22194, which is where the ivar was eliminated. I think it was only a matter of time before this would have been triggered either way.

  2. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions