[Webkit-unassigned] [Bug 24913] qtwebkit 4.5 uses cpu excessively when flash plugin is enabled and web-page containing flash banner is loaded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 20 02:28:58 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=24913
David T. L. Wong <davidtlwong at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davidtlwong at gmail.com
--- Comment #1 from David T. L. Wong <davidtlwong at gmail.com> 2010-01-20 02:28:58 PST ---
I experience this problem too.
Using Qt 4.6 and MSVC2008 on Windows XP.
Webkit source is svn trunk r53272.
It seems there are too many timer event.
I modified SharedTimerQt::start() in WebCore/platform/qt/SharedTimerQt.cpp to:
void SharedTimerQt::start(double fireTime)
{
static int zero_interval_count = 0;
double interval = fireTime - currentTime();
unsigned int intervalInMS;
if (interval < 0) {
intervalInMS = 0;
} else {
interval *= 1000;
intervalInMS = (unsigned int)interval;
}
if (intervalInMS == 0) {
zero_interval_count++;
if ((zero_interval_count % 10000) == 0) {
printf("zero_interval_count = %d, time = %f\n",
zero_interval_count, currentTime());
}
}
m_timer.start(intervalInMS, this);
}
on simple flash that only display a digital clock,
It records 10,000 m_timer.start() calls, with interval equals zero, in 0.536
second
on http://www.adobe.com/flashplatform/ ,
It records 10,000 m_timer.start() calls, with interval equals zero, in 3.165
second
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list