mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-08-19 05:22:27 -04:00
Windows frame timing tweaks
This commit is contained in:
parent
706a113459
commit
acd856646f
@ -380,7 +380,6 @@ AppFrame::AppFrame() :
|
|||||||
wxAcceleratorTable accel(3, entries);
|
wxAcceleratorTable accel(3, entries);
|
||||||
SetAcceleratorTable(accel);
|
SetAcceleratorTable(accel);
|
||||||
|
|
||||||
// frame rate = 1000 / 30 = 33ms
|
|
||||||
// static const int attribs[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, 0 };
|
// static const int attribs[] = { WX_GL_RGBA, WX_GL_DOUBLEBUFFER, 0 };
|
||||||
// wxLogStatus("Double-buffered display %s supported", wxGLCanvas::IsDisplaySupported(attribs) ? "is" : "not");
|
// wxLogStatus("Double-buffered display %s supported", wxGLCanvas::IsDisplaySupported(attribs) ? "is" : "not");
|
||||||
// ShowFullScreen(true);
|
// ShowFullScreen(true);
|
||||||
@ -405,7 +404,8 @@ void AppFrame::initDeviceParams(std::string deviceId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!frame_timer.IsRunning()) {
|
if (!frame_timer.IsRunning()) {
|
||||||
frame_timer.Start(33);
|
// frame rate = 1000 / 30 = 33ms
|
||||||
|
frame_timer.Start(25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user