Fixed SDL not sleeping while in background. It's actually a serious bug, but it wasn't that obvious, because all devices are multicore now.

This commit is contained in:
Sergii Pylypenko
2014-06-24 19:09:57 +03:00
parent 7da700e625
commit 0a1b80a9dd
2 changed files with 20 additions and 7 deletions

View File

@@ -960,7 +960,12 @@ class DemoGLSurfaceView extends GLSurfaceView_SDL {
try
{
mRenderer.wait(300L); // And sometimes the app decides not to render at all, so this timeout should not be big.
} catch (InterruptedException e) { }
}
catch (InterruptedException e)
{
Log.v("SDL", "DemoGLSurfaceView::limitEventRate(): Who dared to interrupt my slumber?");
Thread.interrupted();
}
}
}
}