E
E
Evgeny Nizamiev2015-07-29 12:38:27
Android
Evgeny Nizamiev, 2015-07-29 12:38:27

How to reduce CPU load with GIF animation?

There is a WebView with a number of small GIF animations, these are user avatars. Experimentally, we managed to find out that it was these animations that gave the load up to 30%, basically the load was in the region of 10-15%, when there were few gifs. In general, it is strange that some gifs can so seriously load a modern mobile 8-core processor. Partially the problem was solved by writing something like this in CSS

.gif_element {
  ...
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

The load on dropped by 25-50% (depending on the situation), but this is still not enough, something more "efficient" is needed.
Any ideas how to overcome such a wild load without deleting gifs?
And tell me how to make gif animation stop when scrolling? In a standard browser, this is somehow implemented.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question