[A83] Re: im 2


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

[A83] Re: im 2





>
>I don't think so.  Doing something in hardware can save you cpu time.  But
>using a timer interrupt and having routines randomly interrupt each other
>will not make a program faster.  Context switches like that incur the
>penalty of having to save the state of the registers.  If you really want to
>get the most cycles per second, you need to disable the interrupts and do
>everything yourself.  You save the time it takes to save/restore registers,
>or gain the use of shadow registers.  Using shadow registers can save you a
>lot of time.

I think that what he means by 'random' is that interrupts are only 
activated if you need them, so if the screen doesn't need to get redrawn, 
don't do it.  That saves a lot of time.





References: