| Summary: | iPhone landscape animations lags | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Roland Soos <roland> | ||||||
| Component: | Compositing | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | simon.fraser, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 14 | ||||||||
| Hardware: | iPhone / iPad | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Roland Soos
2021-10-27 05:00:59 PDT
Repros on Safari 15.1 on macOS 12.0.1 on M1; looks like all its time is spent in compositing and paint. Created attachment 442676 [details]
Layers screenshot
The content is making large numbers of layers which are much bigger in landscape, triggering jetsam of the web content process.
mid-animation you have 70 "div#n2-ss-3053 .n2-ss-background-animation .n2-ss-slide-background" elements each of which has translateZ() forcing a layer. That seems a little excessive. Thanks for checking! Probably it would be better if we would write this "effect" in WebGL canvas. On iPhone 13 Pro and iOS 15.1, this crashes every time (probably out of memory). |