From c4e63649093c26a97fbd4b5b26d7479aaaa64090 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 6 Mar 2009 05:29:28 +0000 Subject: [PATCH] MGR: On Mac, revert to auto-save frequency of 5 minutes because the more frequent saves have no positive effect on the Mac. svn path=/trunk/boinc/; revision=17522 --- checkin_notes | 5 +++++ clientgui/AdvancedFrame.cpp | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 365a0e52cd..df0d83301e 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2810,6 +2810,11 @@ Rom 5 Mar 2009 Charlie 5 Mar 2009 - Mac: Remove obsolete files AlreadyAttachedPage.cpp, .h from XCode project. + - MGR: On Mac, revert to auto-save frequency of 5 minutes because: + * The 3 bugs did not occur on the Mac, and + * The saved info is written to a file on the Mac, but the file + is not flushed to disk until the Manager is closed, so the + extra auto-saves have no effect but only waste CPU cycles. mac_build/ boinc.xcodeproj/ diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index e18fa56bef..bf64cfadad 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -231,7 +231,11 @@ CAdvancedFrame::CAdvancedFrame(wxString title, wxIcon* icon, wxIcon* icon32) : m_pRefreshStateTimer = new wxTimer(this, ID_REFRESHSTATETIMER); wxASSERT(m_pRefreshStateTimer); - m_pRefreshStateTimer->Start(5000); // Send event every 5 seconds +#ifdef __WXMAC__ + m_pRefreshStateTimer->Start(300000); // Send event every 5 minutes +#else + m_pRefreshStateTimer->Start(5000); // Send event every 5 seconds +#endif m_pFrameRenderTimer = new wxTimer(this, ID_FRAMERENDERTIMER); wxASSERT(m_pFrameRenderTimer);