Bug 207282 - Occasional stutter when running simple accelerated css animation
Summary: Occasional stutter when running simple accelerated css animation
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Compositing (show other bugs)
Version: Safari 13
Hardware: Mac macOS 10.15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-05 12:03 PST by Dan Fabulich
Modified: 2020-02-06 11:21 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Fabulich 2020-02-05 12:03:44 PST
Visit css-stutter.glitch.me

Expected: Expect the moving box to be perfectly smooth.
Actual: Occasionally a frame is missed

This is a very simple animation that really shouldn't stutter at all. I see occasional missed frames on a 2019 16" MacBook Pro.

div#box {
  background-color: red;
  height: 10vh;
  width: 10vw;
  margin: 10vh 10vw;
  animation-name: slide;
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes slide {
  0% { transform: translateX(0); }
  50% { transform: translateX(400px); }
  100% { transform: translateX(0); }
}
Comment 1 Dan Fabulich 2020-02-05 12:04:34 PST
See also this Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=1049248
Comment 2 Radar WebKit Bug Importer 2020-02-05 13:05:45 PST
<rdar://problem/59199169>
Comment 3 Alexey Proskuryakov 2020-02-05 22:39:09 PST
I don't see any glitches on my 2012 MacBook Pro / macOS Mojave / Safari 13.0.5. Although not sure if I can notice a single dropped frame.
Comment 4 Simon Fraser (smfr) 2020-02-06 11:07:15 PST
Me neither.
Comment 5 Dan Fabulich 2020-02-06 11:21:11 PST
I see it. Chrome DevTools has a tool that can show the dropped frames; is there a tool I can use to measure dropped frames in Safari?