mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -05:00
OSX re-tweak, might need a more accurate frame timer for windows..
This commit is contained in:
parent
acd856646f
commit
d2dbb2ff11
@ -405,7 +405,14 @@ void AppFrame::initDeviceParams(std::string deviceId) {
|
|||||||
|
|
||||||
if (!frame_timer.IsRunning()) {
|
if (!frame_timer.IsRunning()) {
|
||||||
// frame rate = 1000 / 30 = 33ms
|
// frame rate = 1000 / 30 = 33ms
|
||||||
|
|
||||||
|
// windows needs a bit more time or it lags?
|
||||||
|
#ifdef _WIN32
|
||||||
frame_timer.Start(25);
|
frame_timer.Start(25);
|
||||||
|
#else
|
||||||
|
frame_timer.Start(33);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user