home *** CD-ROM | disk | FTP | other *** search
- Path: hydra.zrz.TU-Berlin.DE!rawneiha
- From: rawneiha@hydra.zrz.TU-Berlin.DE (Philipp Boerker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Texturemapping speedu
- Date: 4 Jan 1996 16:04:07 GMT
- Organization: Technical University Berlin, Germany
- Message-ID: <4cgtpn$ani@brachio.zrz.TU-Berlin.DE>
- References: <4b433m$mei@sinsen.sn.no> <4bee9a$99j@news01.uni-trier.de> <38231780@kone.fipnet.fi>
- NNTP-Posting-Host: hydra.zrz.tu-berlin.de
-
- "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
-
-
- >> : Move.l #4.w,a6
- >> : Jsr _LVOCacheClearU(a6)
-
- >> Caches are there to speed up things. What is the point in clearing it
- >> just to excuse self-modifing code?
-
- >Argh. How about a 3d transformations code? 9 muls per pixel,
- >not enough registers? Why not put those 9 values to the code
- >and do a CacheClearU once a frame. Much faster..
-
- There is a thing I call overoptimizing... If you do a polygon engine
- you won't have more than 2000 points in your object. I don't care
- losing 100 cycles per point. In that same polygon engine you will
- have to set at least 500,000 pixels per second. If I lose 4 cycles
- per pixel I will care!
- We (matrix) did a polygon engine that does more than 10 000
- polygons per second (texture mapping of course) on a 50 MHz 030.
- The camera movements aren't optimized at all.
- First rule for optimization: check if there are any real benefits from
- optimization of a special routine...
-
- Still if you don't agree to what I say:
- Always remember that CPU development is hardly predictable and so is
- the future of your code if it does any assumptions about the hardware
- it runs on. Think for instants of 68k emulations running on a PPC 603e:
- Clearing cache will cause the whole emulation program to be dumped
- from Inst Cache; this will cause incredible losses of speed, maybe your
- code won't work at all (I think this is very likely, but it's just a guess).
-
-
- Greets,
- Phil.
- ----------------------------
- grond/matrix
- rawneiha@sp.zrz.tu-berlin.de
- ----------------------------
-
- P.S.: I have been at "The Party V". One hint for your next party release:
- adjust the colours of your demo to the parameters set by the video screen!
- People couldn't see anything!
-