Closed Bug 1036929 Opened 10 years ago Closed 6 years ago

Panel animations are slower on Mac than they are on Windows

Categories

(Toolkit :: UI Widgets, defect, P4)

30 Branch
x86
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: phlsa, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qx] )

When I compare the panel animations in Nightly on Mac and on any of my Windows VMs, the Mac version is noticeably less smooth, even though Windows is slowed down by running inside a VM.
I wonder if we can achieve the same performance on Mac as we have on Windows.
The panel shadow can probably be blamed for this, at least partly. On Mac we don't hardware accelerate panels (windows of type "popup") because their shadow is shaped around the panel content, and if we use OpenGL to render the window contents we lose the dynamic shaping ability. But this is only the case if the window server draws the shadow - if we instead set -moz-window-shadow:none; and drew our own shadow (with box-shadow, for example), we could enable hardware acceleration for the panel and the animation should be much smoother.
This has gotten quite a bit worse with Yosemite.
Now the animations aren't just slower, the panel shadow appears first without any animation and then the panel expands. Plus, there's often a »blink« at the end of the transition where the panel disappears for a split second (but not the shadow) and then reappears.

Markus, how do you see the chances of this getting attention?
Apple is usually pretty fast in converting their user base to new OS versions.
Flags: needinfo?(mstange)
Whiteboard: [qx]
Yeah, it really does look hideous on Yosemite. I'll check what happens if we do our own drop shadow drawing and use GL acceleration for the panels, when I have time.
Assignee: nobody → mstange
Flags: needinfo?(mstange)
(Marking it as assigned, so that I can filter on unassigned bugs a little easier.  ;)
Status: NEW → ASSIGNED
Hm, this got even worse in the last few Nightlies. I now only get about 2-3 frames of animation for panel opening. Sometimes there's no animation at all.
Older versions of Firefox are slightly smoother.

Markus, how is this doing priority-wise at the moment?
Flags: needinfo?(mstange)
Bug 1252224 may be dupe.
See Also: → 1252224
Assignee: mstange → jaws
Flags: needinfo?(mstange)
Depends on: 1291457
Assignee: jaws → nobody
Status: ASSIGNED → NEW
Whiteboard: [qx] → [qx] [fxperf]
Do you still see this issue, phlsa?
Flags: needinfo?(philipp)
Nope! It seems to be fixed now!
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(philipp)
Resolution: --- → WORKSFORME
Whiteboard: [qx] [fxperf] → [qx]
You need to log in before you can comment on or make changes to this bug.