From 1575fe938e9f9772d481c04d73395e41d96f78c6 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Tue, 24 May 2005 21:46:20 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=6244 --- checkin_notes | 8 ++++++++ clientgui/MainFrame.cpp | 5 +++++ 2 files changed, 13 insertions(+) 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