home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!dkuug!imada!news
- From: breese@monet.imada.ou.dk (Bjoern Reese)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: OS 'Move/Draw' speed
- Message-ID: <1993Jan7.115153.1364@imada.ou.dk>
- Date: 7 Jan 93 11:51:53 GMT
- References: <1993Jan7.035143.5678@gn.ecn.purdue.edu>
- Sender: news@imada.ou.dk (USENET News System)
- Organization: Dept. of Math. & Computer Science, Odense University, Denmark
- Lines: 34
-
- In article <1993Jan7.035143.5678@gn.ecn.purdue.edu> seifert@gn.ecn.purdue.edu
- (Michael S. Seifert) writes:
- >
- > The other day I ran a simple test to compare the speed of the Draw function
- > to a simple direct line blit taken from the 1.3 hardware ref manual. Ive
- > always heard that the Draw routine is terribly slow, but in my tests, it
- > wasnt much slower than the blitter example...
- >
- It's wrong to say that Draw is terribly slow. It uses the blitter too.
- As the line blit from the hardware manual is propably the same as the
- one in Draw (I haven't checked though) you'll only gain a minor speed
- increase by avoiding the system jumps.
-
- > Now, I know the Draw routine is slow, so whats up? What kind of line
- > routine would be the wisest to create-- or do real programmers code their
- > own line routine and use the cpu to draw it???
- >
- > mike
-
- "Real programmers" make their own blitter line routines (some of which
- can be found on some ftp sites - I forgot where) The only possible
- gain is cutting away overhead (and sometimes relying on preservation
- of the values in the hardware registers - take care though.) The
- calculation of the octants is an obvious place to optimize. Using
- MOVEM to hit more hardware registers at once is also seen, but take
- care not to write to any unknown registers.
-
- With a M68000 there's no idea in using the CPU instead of the blitter;
- it's too slow.
-
- --
-
- Bjoern Reese | Email: breese@imada.ou.dk
- Odense University, Denmark | Voice: +45 65 932 182 (private)
-