mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-05 14:47:52 -04:00
Sleep only when not visible..
This commit is contained in:
parent
8000e97a8c
commit
1781188dfe
@ -765,14 +765,17 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
|
|||||||
waterfallCanvas->processInputQueue();
|
waterfallCanvas->processInputQueue();
|
||||||
demodWaterfallCanvas->processInputQueue();
|
demodWaterfallCanvas->processInputQueue();
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
usleep(5000);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (this->IsVisible()) {
|
if (this->IsVisible()) {
|
||||||
waterfallCanvas->DoPaint();
|
waterfallCanvas->DoPaint();
|
||||||
demodWaterfallCanvas->DoPaint();
|
demodWaterfallCanvas->DoPaint();
|
||||||
}
|
}
|
||||||
|
#ifndef _WIN32
|
||||||
|
else {
|
||||||
|
usleep(15000);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
event.RequestMore();
|
event.RequestMore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user