Bug 104885

Summary: opengl analyzers use excessive CPU
Product: [Applications] amarok Reporter: Adeodato Simó <dato>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED WORKSFORME    
Severity: minor CC: ana
Priority: NOR    
Version: 1.2.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Adeodato Simó 2005-05-01 04:11:15 UTC
Debian minor bug #298616 (http://bugs.debian.org/298616), reported by Dan 
Torop <dtorop933@gmail.com>: 
 
---------------------------8<---------------------------------------------- 
The OpenGL frequency analyzers tend to use about 75-80% of the CPU on 
my machine (Pentium M 1.6 GHZ, Radeon R250 chipset, proprietary ATI 
drivers).  At all other times (when these drivers are disabled), 
amarok uses < 10% of CPU. 
 
The analyzers are scheduled to update every 15 milliseconds (to give 
approx. 66 fps).  I adjusted them to update every 30 milliseconds (33 
fps), and CPU usage dropped to < 10% again, and the visual quality of 
the analyzer still was good.  A patch to decrease frame rate is 
included. 
 
A better solution might be to enable a right-click frame rate menu as 
in the block analyzer.  Even nicer would be if the analyzers were 
smart enough to take only a reasonable amount of system resources.  
There may also be useful optimizations to the analyzer code? 
---------------------------8<---------------------------------------------- 
 
A "patch" can be found at 
http://bugs.debian.org/cgi-bin/bugreport.cgi/gl-analyze.patch?bug=298616&msg=3&att=1.
Comment 1 Seb Ruiz 2005-05-01 04:27:09 UTC
We have found the results to be the opposite. OpenGL analyzers seem to use 
much less CPU time than the default analyser.


On Sun, 1 May 2005 12:11 pm, Adeodato Simó wrote:
[bugs.kde.org quoted mail]
Comment 2 Alexandre Oliveira 2006-03-01 07:43:58 UTC
Is it still a problem?
Comment 3 Alexandre Oliveira 2006-04-24 05:30:27 UTC
Well, yes, they seem to actually use less CPU.