Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Do not call Dart_NotifyIdle when in Dart_PerformanceMode_Latency #37499

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

iskakaushik
Copy link
Contributor

This is to ensure that smoother animations take precedence over idle notifications that trigger GC work.

This is to ensure that smoother animations take precedence over
idle notifications that trigger GC work.
@@ -219,6 +219,12 @@ bool RuntimeController::NotifyIdle(fml::TimePoint deadline) {

tonic::DartState::Scope scope(root_isolate);

Dart_PerformanceMode performance_mode =
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be better if we could cut this off in the animator instead, and avoid even scheduling the delayed task during this time.

However, I'm also looking into refactoring that logic a bit right now anyway, since I think it's doing duplicate work in some cases.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM

@iskakaushik iskakaushik merged commit d83132b into flutter:main Nov 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 11, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 11, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 11, 2022
…115134)

* e48e72ddd Roll buildroot to f63462f. (flutter/engine#37497)

* d83132b54 Do not call Dart_NotifyIdle when in Dart_PerformanceMode_Latency (flutter/engine#37499)

* cb78576e5 Roll Skia from b50a2f714837 to b50f741ef341 (2 revisions) (flutter/engine#37508)
@zanderso
Copy link
Member

@iskakaushik Are there any benchmarks on CI that we should keep an eye on for changes related to this PR?

shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#115134)

* e48e72ddd Roll buildroot to f63462f. (flutter/engine#37497)

* d83132b54 Do not call Dart_NotifyIdle when in Dart_PerformanceMode_Latency (flutter/engine#37499)

* cb78576e5 Roll Skia from b50a2f714837 to b50f741ef341 (2 revisions) (flutter/engine#37508)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#115134)

* e48e72ddd Roll buildroot to f63462f. (flutter/engine#37497)

* d83132b54 Do not call Dart_NotifyIdle when in Dart_PerformanceMode_Latency (flutter/engine#37499)

* cb78576e5 Roll Skia from b50a2f714837 to b50f741ef341 (2 revisions) (flutter/engine#37508)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants