<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GTK+ uses a lot more CPU under Wayland than under X11"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=772075#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - GTK+ uses a lot more CPU under Wayland than under X11"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=772075">bug 772075</a>
              from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=gns%40gnome.org" title="Gustavo Noronha (kov) <gns@gnome.org>"> <span class="fn">Gustavo Noronha (kov)</span></a>
</span></b>
        <pre>I was talking to Pekka Paalanen about the pixman fast path and he was telling
me:

1) good luck getting anything new into pixman
2) affine matrix + scaling, repeat/pad masking all make fast paths harder to
find

I believe the problematic bit in question is scaling, since it is not a problem
when not in hidpi, so we could take that out of the equation, but I'm not sure
how - sounds like it would be a much more intrusive change. Pekka suggested
that I try disabling bilinear filtering:

diff --git a/gtk/gtkcssshadowvalue.c b/gtk/gtkcssshadowvalue.c
index 35d3df7..6de2bf1 100644
--- a/gtk/gtkcssshadowvalue.c
+++ b/gtk/gtkcssshadowvalue.c
@@ -381,6 +381,7 @@ mask_surface_repeat (cairo_t         *cr,

     pattern = cairo_pattern_create_for_surface (surface);
     cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
+    cairo_pattern_set_filter (pattern, CAIRO_FILTER_FAST);

     cairo_mask (cr, pattern);

That improves things quite a bit, but not as much as my patch does - resizing
the main gtk3-demo window is still quite jerky, for instance.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>