﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
7953	Reduce mythfrontend CPU usage on idle screens	Jim Stichnoth <stichnot@…>	Isaac Richards	"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""."	patch	closed	major	0.23	MythTV - General	head	medium	fixed			1
