Mail Archives: djgpp/1996/10/31/18:37:09
snarfy AT goodnet DOT com wrote:
>
> >Onto a different topic:
> >
> >As for DOS multi-tasking, the implementation I will take is to use the
> >uclock timer, select a time slice size - say, 10ms, and run my
> >subroutines
> >from my uclock timer interrupt (well, thats the plan anyway... :) that
> >way my uclock interrupt will decide what gets to run when, and will as a
> >result be fully pre-emptive. I was also looking at having an interrupt
> >run at say 44100 times a second, and use my own sound mixing code. This
> >interrupt would pre-empt my uclock interrupt, having absolute priority.
> >Isnt this pre-emptive multi-tasking? (although its for a dedicated
> >application and I have no idea how I am going to do it yet... :)
> Check out the lwp package at http://www.goodnet.com/~snarfy/threads.html
> and save yourself some headaches. :)
I did...I will probably use the threads package to do the mouse,
keyboard
etc I/O type of stuff. Unfortunately, it only interrupts at 50Hz (is
this
right?) so its not fast enough for real-time sound mixing using the
intterupts... Unless anybody has any other ideas? ;)
Say, does anybody know anything about texture mapping? My code is giving
me a major head ache... :)
Leathal.
- Raw text -