<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#c3">Comment # 3</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>Created <span class=""><a href="attachment.cgi?id=338532&action=diff" name="attach_338532" title="css shadows: repeat a painted surface rather than masking">attachment 338532</a> <a href="attachment.cgi?id=338532&action=edit" title="css shadows: repeat a painted surface rather than masking">[details]</a></span> <a href='review?bug=772075&attachment=338532'>[review]</a>
css shadows: repeat a painted surface rather than masking
After further investigating, it seems like doing a repeat masking is much
slower than a repeat paint operation. Using an intermediate surface and
repeating it improves performance a lot - I can now resize terminal and
browser windows without hiccups, and the pixbufs demo runs much better.
I still see a lot of overhead caused by the mixing of GL and 2D cairo in some
test cases (such as
<a href="https://webkit.org/blog-files/3d-transforms/poster-circle.html">https://webkit.org/blog-files/3d-transforms/poster-circle.html</a>), but the
overhead caused by painting shadows pretty much disappears from
my profiles (I'm testing mainly with gtk 3.20 on Fedora 24, but tried the patch
on master as well).</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>