<div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en"><div><br></div>
          On Oct 28 2016, at 12:33 pm, Stefan Salewski <mail@ssalewski.de> wrote:
          <br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
            <p>On Fri, 2016-10-28 at 18:08 +0200, Uli Schlachter wrote:<br>> Attached is an example</p>
<p>Nice. For my box, a NUC6i7KYK (Skull canyon) with integrated intel<br>graphics XORG load shown by top drops from initial 30% to only 6% with<br>your example. For a 4k display with nearly fullscreen window.</p></blockquote><br></div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en">I agree. This example performs much better than my original implementation - my numbers are approximately what Stefan's are: ~7% Xorg load even when full screen. A significant improvement - down from 30%! Thanks for the suggestions and examples Stefan and Uri.</div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en"><br></div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en">Although, I guess I'm still a little confused about exactly why the Xorg load has gone down. Isn't the same amount of data being shipped over to Xorg via the socket? i.e., isn't cairo_paint() sending the same size surface over to Xorg in this new version?</div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en"><br></div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en">I would have thought that in this latest version, the load for the example application process would have gone down (cairo has to do less drawing), but the load for Xorg would have remained the same. Perhaps my confusion has been that I thought the computions performed in the redraw callback would be listed as the load for my executable not Xorg's - thus I have been hesitant to optimize the redraws given that top reports never reports the load of my application to be above ~10%.</div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en"><br></div><div class="gmail_quote nylas-quote nylas-quote-id-39v6i97n1yq9ru1ncqnhaz2en">Thanks again!</div><div id="n1-quoted-text-marker"></div>