我在RCAR-H3MCU上运行Android9.0。有时GUI (所有应用程序)非常慢,我在logcat中看到如下日志:
W SurfaceFlinger: Timed out waiting for hw vsync; faking it问题是否来自显卡驱动程序?
发布于 2021-10-27 14:30:40
是否正在从URL或资源加载图像?
如果你使用的是url而不是android中的Glide Library,那么最好在android中加载图片。我在下面添加了一些示例代码。
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
Glide.with(context)
.asBitmap()
.load(model.getImage())
.apply(RequestOptions.noTransformation())
.diskCacheStrategy( DiskCacheStrategy.ALL )
.priority(Priority.IMMEDIATE)
.into(holder.imgcategory)
.waitForLayout();```https://stackoverflow.com/questions/69740238
复制相似问题