<div class="gmail_quote">On Thu, Oct 29, 2009 at 3:04 PM, jansenj <span dir="ltr">&lt;<a href="mailto:jansenj%2Bmyth@gmail.com">jansenj+myth@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I just noticed that when I do a &quot;top&quot; that mythfrontend.real is consuming almost 15% CPU when it is running at 1Ghz.  I&#39;m using mythbuntu theme with Qt on mythbuntu&#39;s 0.22-fixes packages.  Any ideas what could have changed?  Or is it something I could have changed?<br>

</blockquote></div><br>I thought I&#39;d reply to my original post.<br><br>The behavior here is without a doubt attributed to mythui pulse.<br><br>It looks like animate is called at 70Hz, and as it was said in this thread, this can be dropped much lower if you don&#39;t have animations, but it takes modifying source and rebuilding.<br>
<br>I&#39;m astounded that the majority of the people reporting this behavior report similar cpu usage levels, no mater what the clock speed of the cpu.  In fact I can have mine clocked at 1Ghz or 2Ghz, and both result in a 14% utilization, so there seems to be an odd timing or wait component that doesn&#39;t give up context, but I couldn&#39;t find one.  But if we do the math, every time animate runs, it consumes the cpu for a full 2ms.<br>
<br>It looks like Animate calls a bunch of pulses from all sorts of object types: clocks, images, text...etc.  It looks like to me, that all pulses eventually end up calling mythuitype::pulse which sets up the screen to redraw if it detected any motion or alpha blending changes.  Then it loops through and does a pulse on all the given children for that single item.  <br>
<br>Something that confused me: I tried commenting out all the pulse bodies that call mythuitype::pulse, and I still could get into a mode where 14% utilization was seen.  But if I comment out the body of mythuitype::pulse the cpu usage drops way down, but myth doesn&#39;t work very well if you do that.  After all, it looks like for every iteration of animate mythuitype::pulse gets called 39 times in my setup.  That means, normally, it is doing an alpha pulse and motion pulse 2700 times per second each.  But I wouldn&#39;t think that would add up to 140ms of time.<br>