Why does enabling hardware-acceleration in CSS3 slow down performance?

后端 未结 6 1955
醉梦人生
醉梦人生 2020-11-30 17:23

I am moving 6000 small div elements in an css3 experiment using a transition from top: 0 to top: 145px to test performance.

Using n

6条回答
  •  隐瞒了意图╮
    2020-11-30 17:39

    My expericence is that GPUs aren't generally faster for all kind of graphics. For very "basic" graphics they can be slower.

    You might have gotten different result if you were rotating an image - that's the kind of thing GPUs are good at

    Also consider that translateZ(0) is an operation in 3 dimensions, while changing top or left is a 2 dimensional operation

提交回复
热议问题