OSX 1/2 refresh frame-limiting hack

This commit is contained in:
Charles J. Cliffe
2015-02-10 23:49:34 -05:00
parent e4c942c714
commit adf8ba5251
6 changed files with 20 additions and 1 deletions
+3
View File
@@ -45,6 +45,9 @@ void ScopeCanvas::setDeviceName(std::string device_name) {
void ScopeCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
wxPaintDC dc(this);
#ifdef __APPLE__ // force half-rate?
glFinish();
#endif
const wxSize ClientSize = GetClientSize();
if (!wxGetApp().getAudioVisualQueue()->empty()) {