Status Update
Comments
tn...@google.com <tn...@google.com> #2
(To be clear I notice this when I'm trying to scroll -- the frame rate is like 2-3 fps.)
rp...@google.com <rp...@google.com>
tn...@google.com <tn...@google.com> #3
Random guess -- did we add an svg icon into one of the templates which now requires expensive rasterization?
di...@google.com <di...@google.com> #4
The issue seems to be Mac specific. In Linux, the scrolling seems to be much better.
di...@google.com <di...@google.com> #5
Disabling all new templates does not seem to make any difference. I do not see any svg thumbnails in the code but Jose can confirm.
tn...@google.com <tn...@google.com> #6
What about size? Are all the icons reasonable size? (I tried to look in the codebase but I can't find the template content :-) )
di...@google.com <di...@google.com> #7
This might have been a platform change. The main time drain seems to be the scaling in TemplateIcon.paintIcon
but this code has not changed in quite a while.
The scale is 1.0
, and ignoring the scaling operation with that scale, makes the dialog usable (like 20-30 FPS).
di...@google.com <di...@google.com> #8
scaling during the paintIcon is probably not ideal, so maybe we should cache the scaling operation in TemplateIcon
.
tn...@google.com <tn...@google.com> #9
ag/15832434 appears to fix it here
sa...@google.com <sa...@google.com> #11
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Bumblebee Canary 13 (2021.1.1.13)
- Android Gradle Plugin 7.1.0-alpha13
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
Using BB canary 10, I noticed that when I open the new project wizard and scroll around the graphics performance is very sluggish. I checked the process monitor and nothing else is running. I grabbed a thread dump and it shows a lot of busy painting -- thread dump below.
Build: AI-211.7628.21.2111.7667256, 202108231940,
AI-211.7628.21.2111.7667256, JRE 11.0.11+0-b60-7590822x64 JetBrains s.r.o., OS Mac OS X(x86_64) v11.5.1, screens 3840.0x2160.0; Retina
AS: Bumblebee | 2021.1.1 Canary 10; Kotlin plugin: 211-1.5.20-release-284-AS7442.40; Android Gradle Plugin: (plugin information not found); Gradle: 7.2; Gradle JDK: version 11.0.11; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: (not found)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply all required information.