Android poor graphics performance

164 views Asked by At

I run Android 9.0 on RCAR-H3 MCU. Sometimes the GUI (all applications) very slow and I saw in the logcat the log like below:

W SurfaceFlinger: Timed out waiting for hw vsync; faking it

Did the problem come from graphic driver ?

1

There are 1 answers

1
Peafowlsoft On

Are loading image from URL or assets?

If you'r using url than in android Glide Library is best to load images in android. Here I have add some sample code below.

    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();```