Re: [Audacity-devel] Idle and UpdateMenus
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Dominic M. <do...@mi...> - 2003-03-04 19:12:22
|
Otto Wyss wrote: >>I discovered that 80% of the idle time was spent in UpdateMenus. >>I refactored the code slightly so that it now calls UpdateMenus >>manually whenever PushState or FixScrollbars is called, and >>otherwise no more often than once per second. This brought >>idle CPU usage down to nearly zero on Linux. Hopefully it will >>help on OS X, too. > > Under Windows showing an empty project uses now around 10-15% of my > K6-III+ 500MHz. It's much better now. Great. We should be able to get it down, especially if Brian has a chance to streamline some of his code. But 10-15% is fine for this beta release. > When I start recording CPU usage goes up again and recording is still > unusable. Using the pause or stop button is impossible, I have to kill > audacity with CTRL-ALT-DEL. Temporarily, just look for the following lines in TrackPanel.cpp, and modify them to your liking: if (gAudioIO->GetNumCaptureChannels()) { if ((mTimeCount % 5) == 0) p->RedrawProject(); } Changing the "5" to a "10" will make it update the screen half as often, for example. Let me know what the optimal value for you ends up being. - Dominic > O. Wyss > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Audacity-devel mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-devel |