Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!paz.geology.wisc.edu!uwvax!tank!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.sys.amiga.tech Subject: Re: dos_stuff Keywords: fast,faster,fastest Message-ID: <4930@cps3xx.UUCP> Date: 10 Oct 89 13:13:02 GMT References: <5546@ucdavis.ucdavis.edu> Reply-To: porkka@frith.UUCP (Joe Porkka) Organization: Michigan State University Lines: 21 In article <5546@ucdavis.ucdavis.edu> rogers@iris.ucdavis.edu (Brewski Rogers) writes: >Hi, I am working on a videogame that needs to load lots of data (~120-150k) >periodically. (Every time a new map gets loaded.) My question: Is it possible >to get AmigaDOS to approach the speed of simply using the trackdisk device? Have you considered async IO? IF the data you load off of disk needs to be messed with after loading (like, uncompressing), then async can help a lot. To do it, get an example program (dospackets.c by somebody, on fish disks somplace). Basically it goes like this. fh=Open("filename",x); asendpacket(firstpacket) wait() do { asendpacket(nextpacket) processpreviouspacket(); wait(for packet); } while (!eof); Joe Porkka porkka@frith.egr.msu.edu