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

  1. Path: news.eunet.fi!fipnet!kone!jsaarinen
  2. Newsgroups: comp.sys.amiga.programmer
  3. X-NewsReader: IntuiNews 1.2b (31.7.94)
  4. References: <38231714@kone.fipnet.fi> <w22DPMD0aRz1@azure.people-x.people.de>
  5. From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
  6. Date: Mon, 1 Jan 96 16:45:13 UT
  7. Comments: Illegal date header - new date added by quicknews
  8. X-Original-Date: Mon, 01 Jan 96 17:09:14 
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: binary
  12. Distribution: world
  13. Subject: Re: Texturemapping-loop (was Re: PPC compilers)
  14. Message-ID: <38231792@kone.fipnet.fi>
  15.  
  16.  
  17. > Ok.. for all those people who are speaking about the theoretic speed
  18. > of texturemap-routines I tested all inner-loops out.
  19. > Conditions:
  20. >         -Amiga 1200 with 68030/28Mhz
  21. >         -Data Cache off (important !!)..
  22.  
  23. Why?
  24.  
  25. >         -drawn objekt: Torus with 32 faces.
  26. > Results:
  27. >    1. "Standart Loop"
  28. >    move         d3,d5
  29. >    move.b       d0,d5
  30. >    move.b       (a4,d5.l),(a2)+
  31. >    add.l        d4,d3
  32. >    addx         d2,d0
  33. >    Time: 100% (reference) , 352 rasterlines
  34. >    2. "Standart Loop with 64k aligned textures"
  35. >    move         d3,d6
  36. >    move.b       d0,d6
  37. >    move.l       d6,a4
  38. >    move.b       (a4),(a2)+
  39. >    add.l        d4,d3
  40. >    addx         d2,d0
  41. >    Time: 96,9%  , 341 rasterlines
  42.  
  43. Did you unroll the loops? I got much larger speedup on my 040/40
  44. when I started using 64k aligned textures. 
  45.  
  46. >    3. "Tricky one-add loop with masking" (64x64)
  47. >    move.l       d0,d1
  48. >    and.l        d2,d1   (Mask:%111111000000111111)
  49. >    move.b       (a4,d1.l),(a2)+
  50. >    addx.l       d2,d0
  51. >    Time: 94 % , 331 rasterlines
  52. >    4. "one-add loop without masking" (32x32)
  53. >    move.b       (a4,d0.w),(a2)+
  54. >    addx.l       d2,d0
  55. >    Time: 81,8% , 288 rasterlines..
  56.  
  57. I think these two are no good.. execpt for a one object
  58. rotating, but I think nobody wants that anymore.
  59.  
  60. --                               _
  61. a Stellar programmer          _ //
  62. "Amiga - back for the future" \X/
  63.