Commit d4717bd
authored
[Impeller] Joined obligatory vulkan swapchain submits (flutter#42865)
Every frame we submit to the queue a layout transition and a notify to the `acquire` fence. This joins those together into one `vkQueueSubmit` call. Thus eliminating a fence that was happening after the layout transition.
issue flutter#128838
## testing results from the gallery driver test
```
Before:
"average_frame_build_time_millis": 1.379130952380952,
"90th_percentile_frame_build_time_millis": 1.965,
"99th_percentile_frame_build_time_millis": 20.246,
"worst_frame_build_time_millis": 29.578,
"missed_frame_build_budget_count": 7,
"average_frame_rasterizer_time_millis": 20.447408955223867,
"90th_percentile_frame_rasterizer_time_millis": 25.398,
"99th_percentile_frame_rasterizer_time_millis": 160.198,
"worst_frame_rasterizer_time_millis": 178.042,
"missed_frame_rasterizer_budget_count": 122,
"frame_count": 336,
"frame_rasterizer_count": 335,
"new_gen_gc_count": 0,
"old_gen_gc_count": 0,
"frame_build_times": [
after:
"average_frame_build_time_millis": 1.1907232876712324,
"90th_percentile_frame_build_time_millis": 1.926,
"99th_percentile_frame_build_time_millis": 16.666,
"worst_frame_build_time_millis": 27.39,
"missed_frame_build_budget_count": 5,
"average_frame_rasterizer_time_millis": 15.525100817438704,
"90th_percentile_frame_rasterizer_time_millis": 20.116,
"99th_percentile_frame_rasterizer_time_millis": 33.835,
"worst_frame_rasterizer_time_millis": 56.075,
"missed_frame_rasterizer_budget_count": 156,
"frame_count": 365,
"frame_rasterizer_count": 367,
"new_gen_gc_count": 0,
"old_gen_gc_count": 0,
```
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style1 parent fb5fed4 commit d4717bd
1 file changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
393 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
394 | 395 | | |
395 | 396 | | |
396 | | - | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
406 | | - | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| 422 | + | |
421 | 423 | | |
422 | 424 | | |
423 | 425 | | |
| |||
0 commit comments