mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-27 06:08:37 -05: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();
|
||||
demodWaterfallCanvas->processInputQueue();
|
||||
|
||||
#ifndef _WIN32
|
||||
usleep(5000);
|
||||
#endif
|
||||
|
||||
if (this->IsVisible()) {
|
||||
waterfallCanvas->DoPaint();
|
||||
demodWaterfallCanvas->DoPaint();
|
||||
}
|
||||
#ifndef _WIN32
|
||||
else {
|
||||
usleep(15000);
|
||||
}
|
||||
#endif
|
||||
|
||||
event.RequestMore();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user