xingplus / tunnelblick

Automatically exported from code.google.com/p/tunnelblick
0 stars 0 forks source link

cpu usage when startup window in tunnelblick-preferences is checked #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. check "Startup Window" in Tunnelblick preferences
2. restart Tunnelblick

What is the expected output?
- zero cpu usage of the Tunnelblick process

What do you see instead?
- frequently the cpu usage of the Tunnelblick process goes up to 14%

What version of Tunnelblick are you using? On what version of OS X?
- Tunnelblick 3.2beta28 (build 2714)
- OS X Lion

Original issue reported on code.google.com by enrico.t...@gmail.com on 1 Aug 2011 at 7:38

GoogleCodeExporter commented 9 years ago
Thanks for this report.

Actually, the high CPU usage has nothing to do with "Startup window" being 
checked. But in looking into CPU usage, I found the actual sequence that causes 
it:
1. Open the "VPN Details…" window
2. Click on "Info" to display the Info panel
3. Close the window by either Command-W or clicking the red close button

After step 2, CPU usage goes up (which is expected because of the overhead 
associated with scrolling the credits)

However, after step 3, CPU usage remains high.

If, instead of closing the window, a different panel (for example, 
"Appearance") is selected, the CPU usage goes back to normal (usually 0%).

The bug has been present since the scrolling credits were introduced.

Original comment by jkbull...@gmail.com on 1 Aug 2011 at 10:54

GoogleCodeExporter commented 9 years ago
Fixed in r1717.

Note that the Info panel uses a relatively high amount of CPU time when it is 
being displayed; this because the credits are scrolling. Anyone with ideas to 
reduce CPU usage but still keep the scrolling smooth is invited to make 
suggestions. The scrolling code is in InfoView.m; most of the relevant code is 
in the scrollCredits method.

Original comment by jkbull...@gmail.com on 1 Aug 2011 at 12:29