Unverified Commit 992dba0c authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Wait for frame rendering to stabilize before running the all_elements_bench benchmark (#81086)

parent 643fc8d5
...@@ -42,7 +42,10 @@ Future<void> main() async { ...@@ -42,7 +42,10 @@ Future<void> main() async {
), ),
)); ));
await SchedulerBinding.instance.endOfFrame; // Wait for frame rendering to stabilize.
for (int i = 0; i < 5; i++) {
await SchedulerBinding.instance.endOfFrame;
}
final Stopwatch watch = Stopwatch(); final Stopwatch watch = Stopwatch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment