[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CS results on Console and X

Steve Baker wrote:

> Cubesoft wrote:
> > Also someone(bad with rememberuing names) suggested usleep(1) and sleep(0) every frame for speed.
> That's usually recommended for programs that otherwise would consume
> 100% of
> CPU time.  It gives the kernel the opportunity to schedule other
> critical
> processes.
> It's necessary - but it won't speed your code up at all.

In the case of CS it is not necessary (at least not in X version). Because CS needs
to wait every frame for XSHM to finish processing the previous frame.


> --
> Steve Baker                 http://web2.airmail.net/sjbaker1
> sjbaker1@airmail.net (home)  http://www.woodsoup.org/~sbaker
> sjbaker@hti.com      (work)