home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: TMapping again!
- Date: 12 Feb 1996 17:29:07 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4fntd3$g56@sunsystem5.informatik.tu-muenchen.de>
- References: <4e38rv$9ic@sunsystem5.informatik.tu-muenchen.de> <4f4p95$hj6@oreig.uji.es> <38232328@kone.fipnet.fi> <4fen2i$eag@maureen.teleport.com> <38232371@kone.fipnet.fi>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- Originator: fischerj@hphalle5.informatik.tu-muenchen.de
-
-
- In article <38232371@kone.fipnet.fi>, "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
- |>
- |> > : Actually this is better on 80x86, too.
- |> >
- |> > What is best on the 80x86? 80x86 does less memory access during
- |> > a tmap polygon loop?
- |>
- |> More propably because of the lack of registers, but I would
- |> interpolate the edges while drawing on both 680x0 and 80x86,
- |> not calculating them beforehand to a table.
- |>
- |> How about making a ultra-optimized Texture/Gouraud triangle
- |> routine with a shading table?
-
- A ultraoptimized texturemapper uese no shading table.
- even add-shading slows mapping down.
-
- Imgagine 32 colors, each 8 shading-steps = 256 colors.
-
-
- move.w d1,d6
- move.b d0,d6
- move.l d6,a0
- move.b (a0),d7
- sub.b d5,d7 ;another 2 cycles
- move.b d7,(a1)+ ;another 2 cycles
-
- addx.l d2,d0 ;x
- addx.l d3,d1 ;y
- addx.l d4,d5 ;gouraud-alike color. ;another 2 cycles
-
-
- no reg left for dbra loop. 2 more cycles in unrolled loop.
-
- in inner-loop another 6 additional cycles compared to
- nonshaded mapping. +30%.
-
- I guess with table it's more like +70%.
-
- I see the disadvantage is you got less colors.
- But maybe with using a special palette-setup you
- can do tricks.
-
- |>
- |> -- _
- |> a Stellar programmer _ //
- |> "Amiga - back for the future" \X/
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-