[mythtv-commits] Ticket #7953: Reduce mythfrontend CPU usage on idle screens
MythTV
mythtv at cvs.mythtv.org
Sun Jan 24 14:34:35 UTC 2010
#7953: Reduce mythfrontend CPU usage on idle screens
------------------------------------------------+---------------------------
Reporter: Jim Stichnoth <stichnot@…> | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: unknown
Severity: medium | Mlocked: 0
------------------------------------------------+---------------------------
Many people have observed that mythfrontend consumes a surprising amount
of CPU time while sitting idle on a screen even as simple as the main
menu. The reported CPU usage is usually either 7% or 14%. This is due to
the QTimer implementation which is used for the 70Hz
MythMainWindowPrivate::drawTimer. To get the best possible precision,
QTimer may spend the last 1-2ms busy-waiting before the timeout signal.
This excess CPU usage can be a real issue for a combined FE/BE machine.
Also, it adds to the CPU requirements during playback because the
drawTimer is not stopped during playback.
The attached patch uses a simple timer class based on usleep(). On my ION
system, idle frontend CPU usage drops from 7% to around 1%, according to
"top".
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7953>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list