-
Notifications
You must be signed in to change notification settings - Fork 6k
Ensure that frameTimeNanos passed to VsyncWaiterAndroid is not greater than System.nanoTime #29081
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
On Android the The assert is comparing it against @iskakaushik @chinmaygarde Would it make sense to do something like what
|
@jason-simmons that sounds like a solid approach. @ColdPaleLight would you be able to make the suggested change to this PR? |
Hi, @jason-simmons @iskakaushik Unlike iOS, For example, in the following example code,
Related code: |
7dd7e9e
to
19fe6ac
Compare
What device and version of Android are you using when you see a negative delta in the code above? On the devices I tried, the The Android If some device is calling |
Huawei P40 Pro with Harmony OS |
Error Log
|
…r than System.nanoTime
19fe6ac
to
aeaadb8
Compare
That sounds reasonable. @jason-simmons @iskakaushik |
I did another implementation that tries to match how |
Close this PR and wait for #29093 to land |
The following assertion will cause abort when running Flutter App with an unoptimized local engine.
engine/shell/common/vsync_waiter.cc
Line 100 in edf8fc8
This patch will fix it.
Related PR: #28817
Pre-launch Checklist
writing and running engine tests.
///
).