Closed Bug 1826704 Opened 3 years ago Closed 2 years ago

backface-visibility: hidden causes animation frozen with javascript longtask

Categories

(Core :: Graphics: WebRender, defect, P2)

Firefox 111
x86_64
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1186204
Performance Impact low

People

(Reporter: yuhao.fu1995, Unassigned)

References

Details

(Keywords: perf:animation, perf:responsiveness, reproducible)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62

Steps to reproduce:

you can easily reproduce by using this demo: https://ri87sb.csb.app/. Animation of the little ball would be suspended every 6s until the javascript longtask finished.

demo code: https://codesandbox.io/s/pensive-napier-ri87sb?file=/index.html

Actual results:

animation stopped during javascript longtask

Expected results:

Running the same demo on chrome and safari won't reproduce this issue, so we want to know why and if we can have it fixed on firefox.

Component: Untriaged → Performance
Product: Firefox → Core

This bug was moved into the Performance component.

:yuhao.fu1995, could you make sure the following information is on this bug?

  • For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
  • For memory usage issues, capture a memory dump from about:memory and attach it to this bug.
  • Troubleshooting information: Go to about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.

If the requested information is already in the bug, please confirm it is recent.

Thank you.

Flags: needinfo?(yuhao.fu1995)

add the performance profile, it's easy to see the renderer thread interupted by javasdcript.

Flags: needinfo?(yuhao.fu1995)
Depends on: 1186204
Attachment #9327762 - Attachment mime type: application/json → application/gzip

Moving to core graphics. This is probably just creates an animation that isn't supported on the compositor.

The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: [x] Windows [x] macOS [x] Linux [x] Android
Impact on site: Causes noticeable jank
Websites affected: Rare
[x] Affects animation smoothness
[x] Able to reproduce locally

Performance Impact: --- → low
Component: Performance → Graphics

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
Severity: -- → S3
Component: Graphics → Graphics: WebRender
Flags: needinfo?(bhood)
OS: Unspecified → macOS
Priority: -- → P2
Hardware: Unspecified → x86_64

The CSS property backface-visibility: hidden typically doesn't directly cause animations to freeze or create long tasks in JavaScript. Instead, such issues are usually related to performance and JavaScript optimization. To address animation freezing, ensure efficient JavaScript code, avoid long tasks, utilize hardware acceleration for animations, and minimize complex transformations. Testing in different browsers and reducing layout and paint operations can also help improve overall performance and maintain smooth animations.

Solution Credit : https://escortcallgirlservice.com/

(In reply to Rohini from comment #8)

The CSS property backface-visibility: hidden typically doesn't directly cause animations to freeze or create long tasks in JavaScript. Instead, such issues are usually related to performance and JavaScript optimization. To address animation freezing, ensure efficient JavaScript code, avoid long tasks, utilize hardware acceleration for animations, and minimize complex transformations. Testing in different browsers and reducing layout and paint operations can also help improve overall performance and maintain smooth animations.x

Solution Credit : https://escortcallgirlservice.com/

When it comes to creating smooth animations on the web, optimizing both JavaScript and CSS is crucial. While the CSS property backface-visibility: hidden itself doesn't directly cause animation freezing or long tasks in JavaScript, it's essential to focus on performance and JavaScript optimization. To prevent animation freezing, it is important to write efficient JavaScript code, avoid lengthy tasks, and take advantage of hardware acceleration for animations. Additionally, reducing layout and paint operations, testing in different browsers, and minimizing complex transformations can significantly improve overall performance and ensure that animations remain fluid and seamless.

Solution Credit : <a href="https://callgirlescort.in/" rel="nofollow">Call Girls In Rishikesh</a>

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1186204
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: