Requesting realtime on linux with dbus... and a realtime API?

Hi,

It looks like with newer versions of linux you will be able to request
a realtime thread with a dbus call.
http://lalists.stanford.edu/lad/2009/06/0191.html

That should make it much easier to ask for.

Should SDL be trying to ask for realtime? Or should there be a
realtime request API? I know you can request real time threads on
windows and OSX easily enough.

Or does SDL already allow this somehow?

cheers,

It doesn’t at the moment, that’s not a bad idea for SDL 1.3.On Thu, Sep 24, 2009 at 7:12 AM, Ren? Dudfield wrote:

Hi,

It looks like with newer versions of linux you will be able to request
a realtime thread with a dbus call.
? ?http://lalists.stanford.edu/lad/2009/06/0191.html

That should make it much easier to ask for.

Should SDL be trying to ask for realtime? ?Or should there be a
realtime request API? ?I know you can request real time threads on
windows and OSX easily enough.

Or does SDL already allow this somehow?

cheers,


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

It doesn’t at the moment, that’s not a bad idea for SDL 1.3.

Hi,

It looks like with newer versions of linux you will be able to request
a realtime thread with a dbus call.
http://lalists.stanford.edu/lad/2009/06/0191.html

That should make it much easier to ask for.

Should SDL be trying to ask for realtime? Or should there be a
realtime request API? I know you can request real time threads on
windows and OSX easily enough.

Or does SDL already allow this somehow?

cheers,

Hi,

I’ve used realtime facilities in linux, and osx before… but not so much
windows. Obviously qnx and Symbian have realtime facilities… but I’m not
familiar with those either.

However all of them seem to allow setting priorities for processes and
threads. Even with things like ‘nice’. So I imagine a useful common API
should be possible. getpriority, setpriority are two system calls common on
linux/osx/bsds.

The API would just need to be able to fail easily where it’s not supported.

Even running an SDL program with nice -n -19 on linux/osx can make it
smoother.

Apart from scheduling, being able to lock memory can be useful to make a
game/app less swap affected. However a simple priority API might be
possible with two functions… SDL_GetPriority() SDL_SetPriority().

cheers,On Thu, Sep 24, 2009 at 4:19 PM, slouken wrote:

On Thu, Sep 24, 2009 at 7:12 AM, Ren? Dudfield <@Rene_Dudfield> wrote: