From 5d25b4ef906ccdbaa1fe672f4885eb652a39a09c Mon Sep 17 00:00:00 2001 From: Bernhard Stegmaier Date: Tue, 16 Feb 2016 09:05:41 +0100 Subject: [PATCH] Disable FPS limiter for OSX (GAL). --- common/draw_panel_gal.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/common/draw_panel_gal.cpp b/common/draw_panel_gal.cpp index cccc5dd357..5e97c37ca8 100644 --- a/common/draw_panel_gal.cpp +++ b/common/draw_panel_gal.cpp @@ -182,20 +182,27 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool aEraseBackground, const wxRect* aRect ) if( m_pendingRefresh ) return; + m_pendingRefresh = true; + +#ifdef __WXMAC__ + // Timers on OS X may have a high latency (seen up to 500ms and more) which + // makes repaints jerky. No negative impact seen without throttling, so just + // do an unconditional refresh for OS X. + ForceRefresh(); +#else wxLongLong t = wxGetLocalTimeMillis(); wxLongLong delta = t - m_lastRefresh; if( delta >= MinRefreshPeriod ) { ForceRefresh(); - m_pendingRefresh = true; } else { // One shot timer m_refreshTimer.Start( ( MinRefreshPeriod - delta ).ToLong(), true ); - m_pendingRefresh = true; } +#endif }