home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 207 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

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