Bug 207282

Summary: Occasional stutter when running simple accelerated css animation
Product: WebKit Reporter: Dan Fabulich <dan>
Component: CompositingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, graouts, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Mac   
OS: macOS 10.15   

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?