On Wed, Jan 26, 2000 at 06:04:15AM -0700, teunis wrote:
> On 26 Jan 2000, Marcus Sundberg wrote:
> > teunis <[EMAIL PROTECTED]> writes:
> > > Hey, is there any way to catch console-switching?
> > See the end of ggi/types.h, and ask if there's something unclear
> > about it.
> > > Mah evil program does run in the background...
> > However this should not happen. Applications running on fbdev and
> > svga targets are halted on switch-away unless they have requested
> > GGICMD_NOHALT_ON_UNMAP.
> How do you do this? I'd really much rather handle this myself. There's
> no real reason to halt the program - only to halt the renderer. The
> program itself uses locking queues so when it runs out of space it'll wait
> for the renderer to wake up. Or just toss the frames it can't draw.
> (preferably: the latter :) Easy enough to do.
If you only want the renderer to halt, make the renderer a separate process
to draw to the target that may be fbdev or svga. Use shared memory between
it and the rest of the program. This is the UNIX way.