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

  1. Path: w350zrz.zrz.TU-Berlin.DE!rawneiha
  2. From: rawneiha@w350zrz.zrz.TU-Berlin.DE (Philipp Boerker)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Texture/Gouraud innerloop speedtests
  5. Date: 23 Feb 1996 14:18:31 GMT
  6. Organization: Technical University Berlin, Germany
  7. Message-ID: <4gkibn$8sp@brachio.zrz.TU-Berlin.DE>
  8. References: <38232464@kone.fipnet.fi> <4ga21v$lsk@brachio.zrz.TU-Berlin.DE> <38232562@kone.fipnet.fi>
  9. NNTP-Posting-Host: w350zrz.zrz.tu-berlin.de
  10.  
  11. "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi> writes:
  12.  
  13.  
  14. >> >Ok, I did a little research. My CPU is a 40MHz 68040,
  15. >> >a Warp Engine with a very fast memory system, maybe
  16. >> >this is the reason I did not gain any speed even if
  17. >> >I turned the data cache and thus data burst off,
  18. >> >with data burst everything was about 50% slower.
  19. >> 
  20. >> Not very surprising! Data burst means that whenever
  21. >> a cache-miss occurs the CPU loads 4 longwords around
  22. >> the mem area where the data to be fetched is. For a
  23. >> tmapping loop this means that for almost any pixel that
  24. >> is fetched from the texture the CPU keeps the bus busy
  25. >> for 4 mem cycles!
  26.  
  27. >;) I said 50% slower when I switched the data cache OFF.
  28.  
  29. oops! :)
  30.  
  31. >> >So the frame rates were for a 320x256 screen:
  32. >> >Texture/Gouraud/Shading table, 64k aligned: ~43 fps
  33. >> >Plain Texture, 64k aligned: ~67 fps
  34. >> 
  35. >> fps? Are these figures for the mere repetition (320*256 times)
  36. >> of the innerloop?
  37.  
  38. >Yep. 
  39.  
  40. Otherwise I would have been shocked ;)
  41.  
  42. >> >    move.b    (a3,d0.l),d1
  43. >> >    move.b    (a4,d1.l),(a0)+
  44. >>         [...]
  45. >> >    dbf    d7,poly
  46. >> >    rts
  47. >> 
  48. >> If I understand your problem right you wonder why the
  49. >> two version are almost equal in terms of speed?
  50.  
  51. >If you have read my posting .. I said I could not speed
  52. >up the "normal index version" of the routine, I tried
  53. >all the possible instruction combinations.
  54.  
  55. Well, than your turbo is obviously quite fast...
  56. You should time your routines on a 50 MHz 030, it's the
  57. most common AGA machine I guess.
  58.  
  59. Greets,
  60. Phil.
  61. grond/matrix
  62.  
  63.