[SDL] CPU usage

Solra Bizna sbizna at tejat.net
Fri Feb 8 17:11:41 PST 2008


On Feb 8, 2008 4:50 PM, Alex Barry <alex.barry at gmail.com> wrote:
> From my experience as a game programmer, if you are designing a game that's
> fullscreen, you shouldn't ever worry about the CPU usage, considering there
> won't be any other programs in use while it's running.
> On Feb 8, 2008 5:22 PM, Solra Bizna <sbizna at tejat.net> wrote:
> > IMO, there's a pretty major gap in functionality between WaitEvent and
> > PollEvent. Carbon's WaitNextEvent has a timeout that you can set
> > appropriately, what we need is something like that for SDL.
Yes, but SDL is also useful for writing other applications, including
applications that require some animation or need to respond to other
asynchronous events but don't want to grab the CPU by its horns.
(Before someone says "use threads," not all SDL ports support threads.)
-:sigma.SB


More information about the SDL mailing list