Re: Suspend worker thread when in background

"rtrussell" <[email protected]> Fri, 20 Jan 2017 10:24:04 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Daniel Gibson wrote:
> Is there a way to tell Android to wait a little with either "paging out" the memory or even with switching to another app?
> Otherwise I have no idea, but maybe someone who (unlike me) has actual experience with Android can help

Like you my knowledge of Android is very limited, and to a large extent I'm relying on the SDL docs to tell me what to do (not entirely unreasonable I think - it is supposed to be an 'abstraction layer' that isolates the programmer from platform-specific detail!).

What surprises me is that this seems to be an issue that has not been widely encountered before.  I would have expected worker threads to be the norm these days - it's effectively the only way to achieve a short latency even if the UI thread is waiting for VSYNC, and to leverage the power of multi-core CPUs.

Richard.

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org