Article View: comp.sys.amiga.tech
Article #9676Re: double buffering via interrupts
From: Wade Bickel
Date: Fri, 02 Sep 1988 09:56
Date: Fri, 02 Sep 1988 09:56
33 lines
1886 bytes
1886 bytes
LoadView() works fine inside an interrupt server. Howerever I think
it is considered unsafe to do so because, while processing the interrupt, the
68000 is in Supervisor mode, and calls to the graphics library are supposed
to be made from the User mode.
I also believe that LoadView() takes effect durring the VBlank, as
one of the servers on the chain (empirical evidence only). Thus if your
server sits behind the LoadView() server then the swap will not actually
take effect until the next VBlank.
As Leo pointed out, you should probably send a message, and have
a software interrupt (soft interrupts are in User mode) handler do the
LoadView(). However, soft interrupts are much slower than hardware
interrupts (if my tests were not flawed in some way), so it's up to you
which way to do it.
Good Luck,
Wade.
PS: I hope this information is valid, but please experiment to confirm this.
Much of my picture of what is going on is built upon the results of
repeated attemts to achieve a goal. Through these attempts I gain
information, but rarely have time to confirm it rigorously. So please
take all this with a grain of salt. -W.
UUCP: {cbosgd, hplabs!hp-sdd, sdcsvax, nosc}!crash!pnet01!haitex
ARPA: crash!pnet01!haitex@nosc.mil
INET: haitex@pnet01.CTS.COM
Opionions expressed are mine, and not necessarily those of my employer.
Technical Details
Message-ID:
<3390@crash.cts.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!ucsd!ucsdhub!jack!crash!pnet01!haitexShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!rutgers!ucsd!ucsdhub!jack!crash!pnet01!haitex From: haitex@pnet01.cts.com (Wade Bickel) Newsgroups: comp.sys.amiga.tech Subject: Re: double buffering via interrupts Message-ID: <3390@crash.cts.com> Date: 2 Sep 88 09:56:44 GMT Sender: news@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 33