Wait for frame rendering to stabilize before running the all_elements_bench benchmark (#81086)
This commit is contained in:
parent
643fc8d5f7
commit
992dba0c9a
@ -42,7 +42,10 @@ Future<void> main() async {
|
|||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Wait for frame rendering to stabilize.
|
||||||
|
for (int i = 0; i < 5; i++) {
|
||||||
await SchedulerBinding.instance.endOfFrame;
|
await SchedulerBinding.instance.endOfFrame;
|
||||||
|
}
|
||||||
|
|
||||||
final Stopwatch watch = Stopwatch();
|
final Stopwatch watch = Stopwatch();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user