[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-13 Thread SS
Yes, yes, yes. You're brilliant.

I have a temperature monitor program, which updates its tray icon per second.
I turned it off, and CPU usage dropped to alomost 0%.
Not sure if it's a bug, but explorer.exe won't do the same thing.
Maybe you could cache the bitmap, don't repaint it every time.

--- In power-pro@yahoogroups.com, brucexs bruc...@... wrote:

 
 
 --- In power-pro@yahoogroups.com, SS hypersam.tw@ wrote:
 
  I don't use skin.txt or any other special commands.
  I simply create a bar and in properties | bars and menus | assign the 
  background as sample.bmp.
  also check show buttons for tray icons.
  That is all. Nothing more.
  Powerpro will automatically extend the small picture to cover the whole 
  appearance of the bar. This causes high CPU utilization.
 
 
 I tried your bmp with my tray icon bar and did not see any cpu usage, except 
 when some program updated its tray icon.  I suspect it does repaint the whole 
 background in that case.  
 
 Do you have some program which is continually updated its tray icon?





[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-13 Thread SS
Yes, yes, yes. You're brilliant.

I have a temperature monitor program, which updates its tray icon per second.
I turned it off, and CPU usage dropped to alomost 0%.
Not sure if we can call it a bug, but explorer.exe won't do the same thing.
Maybe you could cache the bitmap, don't repaint it every time.

--- In power-pro@yahoogroups.com, brucexs bruc...@... wrote:

 
 
 --- In power-pro@yahoogroups.com, SS hypersam.tw@ wrote:
 
  I don't use skin.txt or any other special commands.
  I simply create a bar and in properties | bars and menus | assign the 
  background as sample.bmp.
  also check show buttons for tray icons.
  That is all. Nothing more.
  Powerpro will automatically extend the small picture to cover the whole 
  appearance of the bar. This causes high CPU utilization.
 
 
 I tried your bmp with my tray icon bar and did not see any cpu usage, except 
 when some program updated its tray icon.  I suspect it does repaint the whole 
 background in that case.  
 
 Do you have some program which is continually updated its tray icon?





[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-13 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 Yes, yes, yes. You're brilliant.
 
 I have a temperature monitor program, which updates its tray icon per second.
 I turned it off, and CPU usage dropped to alomost 0%.
 Not sure if we can call it a bug, but explorer.exe won't do the same thing.
 Maybe you could cache the bitmap, don't repaint it every time.


It's tricky since, in general, bars can change size (e.g. active buttons or 
dragging the border).  So no plans to change tiling approach at this time.

The idea of creating your own bitmap of the right size would be the simplest 
workaround.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread SS
Now I use a 10x24 size bmp file as the bar's background, and remove any other 
skin settings.
The CPU usage is 5%.
It seems that Powerpro use lots of resource to keep pasting the texture.




[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread SS
Now I use a 10x24 size bmp file as the bar's background, and remove any other 
skin settings.The CPU usage is 5%.

If I use a 2048x24 size bmp file, the CPU usage is around 1%.

It seems that Powerpro use lots of resource to keep pasting the texture.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 Now I use a 10x24 size bmp file as the bar's background, and remove any other 
 skin settings.The CPU usage is 5%.
 
 If I use a 2048x24 size bmp file, the CPU usage is around 1%.
 
 It seems that Powerpro use lots of resource to keep pasting the texture.

Do you have some kind of transparent-colour pixels?  Skins implemented these in 
a CPU intensive way which has to do with the way it handles transparency before 
Windows supported alpha blending.

If you can find a png with the alpha blending and use the standard transparency 
settings on bar properties, it should be a lot more cpu=efficent.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread SS
I am not into picture handling. It is hard for me to understand you.
So I upload the bmp file, 
here 
http://f1.grp.yahoofs.com/v1/ADw7TER9U9GMHE5EUT_wb4YM0WltfZiG2ZqjsaSjNcvBuboZWvOUn5PfpyZHabOI-cM-lSL1b1PtkuQ03JKTV3Kw17j0X0ZV2g/0_TEMP_/sample.bmp;

my pixel blend .png option is disabled.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 I am not into picture handling. It is hard for me to understand you.
 So I upload the bmp file, 
 here 
 http://f1.grp.yahoofs.com/v1/ADw7TER9U9GMHE5EUT_wb4YM0WltfZiG2ZqjsaSjNcvBuboZWvOUn5PfpyZHabOI-cM-lSL1b1PtkuQ03JKTV3Kw17j0X0ZV2g/0_TEMP_/sample.bmp;
 
 my pixel blend .png option is disabled.


Are you using the shape keyword to get a non-rectangular bar or a bar iwth 
holes in it?  If yes, then that is the source of the CPU, I would guess.  If 
not, it is a performance bug in PowerPro (which I am afraid I won't be fixing).

If you need a non-rectangular bar, and cannot create a png with transparent 
pixels, then I don't have another solution to the CPU issue, I am afraid.




[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread SS



I don't use skin.txt or any other special commands.
I simply create a bar and in properties | bars and menus | assign the 
background as sample.bmp.
That is all. Nothing more.
Powerpro will automatically extend the small picture to cover the whole 
appearance of the bar.

The workaround is using a large picture, which is bigger/longer than the  bar.


--- In power-pro@yahoogroups.com, brucexs bruc...@... wrote:

 
 
 --- In power-pro@yahoogroups.com, SS hypersam.tw@ wrote:
 
  I am not into picture handling. It is hard for me to understand you.
  So I upload the bmp file, 
  here 
  http://f1.grp.yahoofs.com/v1/ADw7TER9U9GMHE5EUT_wb4YM0WltfZiG2ZqjsaSjNcvBuboZWvOUn5PfpyZHabOI-cM-lSL1b1PtkuQ03JKTV3Kw17j0X0ZV2g/0_TEMP_/sample.bmp;
  
  my pixel blend .png option is disabled.
 
 
 Are you using the shape keyword to get a non-rectangular bar or a bar iwth 
 holes in it?  If yes, then that is the source of the CPU, I would guess.  If 
 not, it is a performance bug in PowerPro (which I am afraid I won't be 
 fixing).
 
 If you need a non-rectangular bar, and cannot create a png with transparent 
 pixels, then I don't have another solution to the CPU issue, I am afraid.





[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread SS
I don't use skin.txt or any other special commands.
I simply create a bar and in properties | bars and menus | assign the 
background as sample.bmp.
also check show buttons for tray icons.
That is all. Nothing more.
Powerpro will automatically extend the small picture to cover the whole 
appearance of the bar. This causes high CPU utilization.

The workaround is using a large picture, bigger/longer than the bar, to prevent 
Powerpro.exe from extending the picture.


--- In power-pro@yahoogroups.com, brucexs bruc...@... wrote:

 
 
 --- In power-pro@yahoogroups.com, SS hypersam.tw@ wrote:
 
  I am not into picture handling. It is hard for me to understand you.
  So I upload the bmp file, 
  here 
  http://f1.grp.yahoofs.com/v1/ADw7TER9U9GMHE5EUT_wb4YM0WltfZiG2ZqjsaSjNcvBuboZWvOUn5PfpyZHabOI-cM-lSL1b1PtkuQ03JKTV3Kw17j0X0ZV2g/0_TEMP_/sample.bmp;
  
  my pixel blend .png option is disabled.
 
 
 Are you using the shape keyword to get a non-rectangular bar or a bar iwth 
 holes in it?  If yes, then that is the source of the CPU, I would guess.  If 
 not, it is a performance bug in PowerPro (which I am afraid I won't be 
 fixing).
 
 If you need a non-rectangular bar, and cannot create a png with transparent 
 pixels, then I don't have another solution to the CPU issue, I am afraid.





[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-12 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 I don't use skin.txt or any other special commands.
 I simply create a bar and in properties | bars and menus | assign the 
 background as sample.bmp.
 also check show buttons for tray icons.
 That is all. Nothing more.
 Powerpro will automatically extend the small picture to cover the whole 
 appearance of the bar. This causes high CPU utilization.


I tried your bmp with my tray icon bar and did not see any cpu usage, except 
when some program updated its tray icon.  I suspect it does repaint the whole 
background in that case.  

Do you have some program which is continually updated its tray icon?



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-11 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 When I do nothing with my computer, powerpro.exe always takes about 7% cpu 
 time.
 for comparision, firefox.exe sometimes takes 3% cpu time when it's idle.
 
 anyway, is there any way to know why powerpro.exe always need so much CPU 
 time? and to determine which move lets powerpro.exe so busy. 
 
 I am using notebook, battery time is precious.

It takes 0% on mine, so I would guess it is a script you have continuously 
running, e.g. through a timer or event.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-11 Thread SS
I have a bar to show buttons for tray icons.
After disabling this option, cpu usage drops to 0%.

Personally I feel the cost is too high.
Windows' explorer.exe doesn't take 8% cpu time to show tray icons.

But this feature is a must for me, to replace Windows taskbar.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-11 Thread SS


I have a bar to show buttons for tray icons.
After disabling this option, cpu usage drops to 0%.

But the real problem is SKIN.
the bar uses skin, which is defined by a skin.txt.
If I don't use skin for the bar, the cpu utilization is normal.



[power-pro] Re: powerpro.exe, High CPU utilization

2010-07-11 Thread brucexs


--- In power-pro@yahoogroups.com, SS hypersam...@... wrote:

 
 
 I have a bar to show buttons for tray icons.
 After disabling this option, cpu usage drops to 0%.
 
 But the real problem is SKIN.
 the bar uses skin, which is defined by a skin.txt.
 If I don't use skin for the bar, the cpu utilization is normal.


Interesting.  Not sure what this is.  I'm afraid  I am not supporting skins 
anymore; you should be able to do almost everything skins can do by using 
standard bar formatting (except for some special mouse and sound processing and 
fine tuning icon position and text position).