home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!rat!usc!news.service.uci.edu!orion.oac.uci.edu!rbarris
- From: rbarris@orion.oac.uci.edu (Robert C. Barris)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Here's a challenge -- a REALLY obscure question.
- Summary: floppy disables, SCSI doesn't.
- Message-ID: <2B1122B6.8988@news.service.uci.edu>
- Date: 23 Nov 92 18:28:07 GMT
- References: <1992Nov17.035307.4895@CSD-NewsHost.Stanford.EDU>
- Organization: University of California, Irvine
- Lines: 45
- Nntp-Posting-Host: orion.oac.uci.edu
-
- In article <1992Nov17.035307.4895@CSD-NewsHost.Stanford.EDU> cheshire@CS.Stanford.EDU (Stuart Cheshire) writes:
- >This question is for my game, Bolo, which I am currently working on.
- >
- >In order to make the startup time as quick as possible, I load
- >the sound resources off disk simultaneously with running the
- >'join game' map transfer protocol over the network.
- >
- >However, I have found a problem. If you load Bolo off floppy disk, then
- >disk accesses disable interrupts, causing the Mac to miss some network
- >packets, disrupting the smooth flow of the game for other players.
- >
- >I also suspect that perhaps on low end machines like the Mac
- >Plus, SCSI disk access might also cause lost network packets.
- >
- >Before I take out the concurrent loading feature (and have
- >people complain), here is a single plea for help:
- >
- >Does anyone know a test I can make Bolo perform to determine whether
- >disk access will cause network packet loss, so that I can retain the
- >concurrent loading feature on setups that can support it?
- >
- >If no-one answers then concurrent loading goes away in the next release
- >-- network reliability has to take priority over loading speed. Sorry.
- >
- >Stuart Cheshire <cheshire@cs.stanford.edu>
- > * Liliore Green Rains Houses Resident Computer Coordinator
- > * Stanford Distributed Systems Group Research Assistant
- > * Macintosh Programmer
-
- I think you can assume that SCSI accesses will never disable interrupts. One
- gross way to look at this would be to use the volume reference number of
- the volume you are doing accesses to; look up its VCB; find the Drive Queue
- element which corrsponds to that volume by walking the Drive Queue; then
- see if the driver reference number for that drive is in the range devoted
- to SCSI (don't remember offhand). Whew!
-
- The floppy controller takes full CPU attention in all Macs save for the Quadra
- 9x0's and the IIfx. It's timing critical a la LocalTalk and therefore requires
- that interrupts be disabled.
-
- But, I think if you're on anything but a floppy, it should be OK.
-
- Rob Barris
- Quicksilver Software Inc.
- rbarris@orion.oac.uci.edu
-