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
This commit is contained in:
Charlie Fenton 2009-03-06 05:29:28 +00:00
parent 1b30195893
commit c4e6364909
2 changed files with 10 additions and 1 deletions

View File

@ -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/

View File

@ -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);