0

I have one question about performance thing.

I have some animated Views, that have internally many layers (8 layers), but only 4 are visible at once, other have opacity of 0.

I am just wondering, if the surface has opacity of 0, is it rendered or is it culled down?

And if it is rendered, where/how do I disable it (mark non-renderable) with if-check?

Thanks!

Vili Volcini
  • 327
  • 4
  • 16

1 Answers1

1

Elements with opacity 0 don't render, and in famous, surfaces use perspective-3d which usually results in the browser compositing the contents as a gpu texture of sorts. This results in a huge performance increase.

Opacity 0 elements will still receive events however, which makes it different from, say, visibility hidden, which will ignore all events.

Kraig Walker
  • 812
  • 13
  • 25