Skip to content

Remove RunLoop from Windows template#79969

Merged
cbracken merged 1 commit intoflutter:masterfrom
knopp:win_template_no_runloop
Apr 27, 2021
Merged

Remove RunLoop from Windows template#79969
cbracken merged 1 commit intoflutter:masterfrom
knopp:win_template_no_runloop

Conversation

@knopp
Copy link
Member

@knopp knopp commented Apr 7, 2021

This removes the RunLoop class from Windows template and changes the message pump to idiomatic Get/Translate/DispatchMessage loop.

After flutter/engine#24232 it is no longer necessary to call FlutterDesktopEngineProcessMessages.

List which issues are fixed by this PR. You must list at least one issue.

Fixes #78517, but only for newly created projects.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@knopp knopp requested a review from cbracken April 7, 2021 18:53
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 7, 2021
@google-cla google-cla bot added the cla: yes label Apr 7, 2021
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks!

Separately, we'll need to add a tool migration step in the tool. I've filed #80057 to track that work.

@jonahwilliams
Copy link
Contributor

@cbracken can this be merged? if so please add the "waiting for tree" tag on it so it can be merged

rydmike added a commit to rydmike/flex_color_picker that referenced this pull request Apr 16, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
rydmike added a commit to rydmike/flex_color_scheme that referenced this pull request Apr 16, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
@jonahwilliams
Copy link
Contributor

Friendly ping @cbracken can this be landed?

@cbracken cbracken merged commit 858123d into flutter:master Apr 27, 2021
rydmike added a commit to rydmike/flex_color_picker that referenced this pull request Jun 11, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
rydmike added a commit to rydmike/flex_color_scheme that referenced this pull request Jun 24, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
rydmike added a commit to rydmike/flex_color_scheme that referenced this pull request Nov 13, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
rydmike added a commit to rydmike/flex_color_scheme that referenced this pull request Nov 13, 2021
This new runloop gets rid of extra CPU load on Windows, but may require a version that is not available on all channels yet.
Refer to issue: flutter/flutter#79195
flutter/engine#24232
This should fix it at some point:
flutter/flutter#79969
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter desktop Windows Release High CPU usage

3 participants