text stringlengths 1 372 |
|---|
see the sentry flutter example app. |
<topic_end> |
<topic_start> |
performance |
flutter performance basics |
info note |
if your app has a performance issue and you are |
trying to debug it, check out the DevTool’s page |
on using the performance view. |
what is performance? why is performance important? how do i improve performance? |
our goal is to answer those three questions (mainly the third one), and |
anything related to them. this document should serve as the single entry |
point or the root node of a tree of resources that addresses any questions |
that you have about performance. |
the answers to the first two questions are mostly philosophical, |
and not as helpful to many developers who visit this page with specific |
performance issues that need to be solved. |
therefore, the answers to those |
questions are in the appendix. |
to improve performance, you first need metrics: some measurable numbers to |
verify the problems and improvements. |
in the metrics page, |
you’ll see which metrics are currently used, |
and which tools and APIs are available to get the metrics. |
there is a list of frequently asked questions, |
so you can find out if the questions you have or the problems you’re having |
were already answered or encountered, and whether there are existing solutions. |
(alternatively, you can check the flutter GitHub issue database using the |
performance label.) |
finally, the performance issues are divided into four categories. they |
correspond to the four labels that are used in the flutter GitHub issue |
database: “perf: speed”, “perf: memory”, |
“perf: app size”, “perf: energy”. |
the rest of the content is organized using those four categories. |
<topic_end> |
<topic_start> |
speed |
are your animations janky (not smooth)? learn how to |
evaluate and fix rendering issues. |
improving rendering performance |
<topic_end> |
<topic_start> |
app size |
how to measure your app’s size. the smaller the size, |
the quicker it is to download. |
measuring your app’s size |
<topic_end> |
<topic_start> |
impeller rendering engine |
<topic_end> |
<topic_start> |
what is impeller? |
impeller provides a new rendering runtime for flutter. |
the flutter team’s believes this solves flutter’s |
early-onset jank issue. |
impeller precompiles a smaller, simpler set of shaders |
at engine build time so they don’t compile at runtime. |
for a video introduction to impeller, check out the following |
talk from google I/O 2023. |
introducing impeller - flutter’s new rendering engine |
impeller has the following objectives: |
<topic_end> |
<topic_start> |
availability |
where can you use impeller? |
<topic_end> |
<topic_start> |
iOS |
flutter enables impeller by default on iOS. |
to disable impeller on iOS when debugging, |
pass --no-enable-impeller to the flutter run command. |
to disable impeller on iOS when deploying your app, |
add the following tags under the top-level <dict> tag in your |
app’s info.plist file. |
the team continues to improve iOS support. |
if you encounter performance or fidelity issues |
with impeller on iOS, file an issue in the GitHub tracker. |
prefix the issue title with [impeller] and |
include a small reproducible test case. |
<topic_end> |
<topic_start> |
macOS |
impeller is available for macOS in preview as of |
the flutter 3.13 stable release. |
it continues to be in preview as of the 3.19 release. |
to enable impeller on macOS when debugging, |
pass --enable-impeller to the flutter run command. |
to enable impeller on macOS when deploying your app, |
add the following tags under the top-level <dict> tag in your |
app’s info.plist file. |
<topic_end> |
<topic_start> |
android |
as of flutter 3.16, impeller is available behind |
a flag on android devices that support vulkan. |
it continues to be in preview as of the 3.19 release. |
does your device support vulkan? |
you can determine whether your android device |
supports vulkan at checking for vulkan support. |
you can try impeller on vulkan-capable android devices |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.