diff --git a/checkin_notes b/checkin_notes index c48b16acd5..b0204277dc 100755 --- a/checkin_notes +++ b/checkin_notes @@ -7030,3 +7030,11 @@ Rom 24 May 2005 clientgui/ BOINCGUIApp.cpp MainFrame.cpp, .h + +Rom 24 May 2005 + - Throttle back how often the UI is aloud to update itself to two times + a second, the Mac was consuming 12% of the CPU just processing events + in the BOINC Manager + + clientgui/ + MainFrame.cpp diff --git a/clientgui/MainFrame.cpp b/clientgui/MainFrame.cpp index 628919f8cc..4e12535255 100644 --- a/clientgui/MainFrame.cpp +++ b/clientgui/MainFrame.cpp @@ -220,6 +220,11 @@ CMainFrame::CMainFrame(wxString strTitle) : SetStatusBarPane(0); + // Limit the number of times the UI can update itself to two times a second + // NOTE: Linux and Mac were updating several times a second and eating + // CPU time + wxUpdateUIEvent::SetUpdateInterval(500); + // The second half of the initialization process picks up in the OnFrameRender() // routine since the menus' and status bars' are drawn in the frameworks // on idle routines, on idle events are sent in between the end of the