I am using transform:scale
css property to scale an array of image and measure the performance in fps.
After measuring the performance, it was very slow. The result was only 20fps.
After reading some tips on how to improve performance. Mostly they suggested not to use box-shadow
for it is very heavy and can slow the performance.
So, I set the box-shadow:none
and measure the performance again. Unfortunately it gave the same results.
Out of curiosity I set box-shadow:1px 1px 1px black
to check the performance. My expectation of the performance is it is slower cause box-shadow is present.
But after measuring the performance, it boosted from 20fps - 50fps. Any ideas as that what is the reason of this? I'm out of ideas.
Thanks.