[SDL] Flipping on DirectX
linux_dr at yahoo.com
Sat Aug 10 20:29:00 PDT 2002
--- Matthew Miller <mattdm at mattdm.org> wrote:
> On Thu, Aug 08, 2002 at 04:01:19PM +0200, José Luis
> Sánchez wrote:
> > to reduce multithreading to a bare minimum,
> because of the timeslice
> > granularity (around 20 ms on most PC operating
> systems), insufficient or bad OS
> > implementation (lack of system-blocking calls for
> example), etc.
> 10ms on Linux on x86. But yeah.
> With the 2.6 kernel, this will change to 1ms or so.
Admittedly this wasn't the best use of threads I could
have recommended (I just intended to suggest a
short-term solution)... Even so, I never intended to
suggest polling in another thread... Conditional
variables should not be bound to timeslice
increments... as soon as one thread blocks, any other
runnable thread should start. Not an elegant
solution, but it should work ok without respect to
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
More information about the SDL