mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7607
This commit is contained in:
parent
99f75171f6
commit
ab0284a735
|
@ -11171,3 +11171,12 @@ Janus 30 Aug 2005
|
|||
user/
|
||||
view_profile.php
|
||||
|
||||
Charlie 30 Aug 2005
|
||||
- Fix excessive CPU usage on Mac when Manager window was open.
|
||||
CMainFrame::OnFrameRender() was always calling SetTitle(), which
|
||||
forced a full redraw of the window once every second. The full
|
||||
redraw is very CPU-intensive. We now call GetTitle() and don't
|
||||
call SetTile() unless title text has changed.
|
||||
|
||||
clientgui/
|
||||
MainFrame.cpp
|
||||
|
|
|
@ -1665,9 +1665,11 @@ void CMainFrame::OnFrameRender(wxTimerEvent &event) {
|
|||
strStatusText.Printf(_("Connected to %s"), strComputerName.c_str());
|
||||
}
|
||||
|
||||
SetTitle(strTitle);
|
||||
// The Mac takes a huge performance hit changing the text of a floating
|
||||
// The Mac takes a huge performance hit redrawing this window,
|
||||
// window, so don't change the text unless we really have too.
|
||||
if (GetTitle() != strTitle)
|
||||
SetTitle(strTitle);
|
||||
|
||||
if (strStatusText != strCachedStatusText) {
|
||||
strCachedStatusText = strStatusText;
|
||||
m_pStatusbar->m_ptxtConnected->SetLabel(strStatusText);
|
||||
|
@ -1678,7 +1680,8 @@ void CMainFrame::OnFrameRender(wxTimerEvent &event) {
|
|||
m_pStatusbar->m_pbmpDisconnect->Show();
|
||||
m_pStatusbar->m_ptxtDisconnect->Show();
|
||||
|
||||
SetTitle(m_strBaseTitle);
|
||||
if (GetTitle() != m_strBaseTitle)
|
||||
SetTitle(m_strBaseTitle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue