mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-11 18:28:57 -04:00
Whoops.. I can has memory leak?
This commit is contained in:
+6
-2
@@ -358,7 +358,6 @@ AppFrame::AppFrame() :
|
||||
SetAcceleratorTable(accel);
|
||||
|
||||
// frame rate = 1000 / 30 = 33ms
|
||||
frame_timer.Start(33);
|
||||
// static const int attribs[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, 0 };
|
||||
// wxLogStatus("Double-buffered display %s supported", wxGLCanvas::IsDisplaySupported(attribs) ? "is" : "not");
|
||||
// ShowFullScreen(true);
|
||||
@@ -381,6 +380,10 @@ void AppFrame::initDeviceParams(std::string deviceId) {
|
||||
if (devConfig->getIQSwap()) {
|
||||
iqSwapMenuItem->Check();
|
||||
}
|
||||
|
||||
if (!frame_timer.IsRunning()) {
|
||||
frame_timer.Start(33);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -719,7 +722,8 @@ void AppFrame::OnTimer(wxTimerEvent& event) {
|
||||
} else {
|
||||
fftDistrib.setFFTSize(DEFAULT_FFT_SIZE);
|
||||
}
|
||||
fftDistrib.setLinesPerSecond(60);
|
||||
fftDistrib.setLinesPerSecond(24);
|
||||
wxGetApp().getWaterfallVisualQueue()->set_max_num_items(24);
|
||||
fftDistrib.run();
|
||||
|
||||
wproc->setView(waterfallCanvas->getViewState());
|
||||
|
||||
Reference in New Issue
Block a user