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

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Wolfenstein Texture mapping problem
  5. Date: 28 Feb 1996 19:39:43 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4h2b1v$cn0@maureen.teleport.com>
  8. References: <4g5mv0$sns@news01.uni-trier.de> <4gimj3$4lp@news01.uni-trier.de> <4glh4j$rgg@maureen.teleport.com> <4guqo5$4l9@news01.uni-trier.de>
  9. NNTP-Posting-Host: kelly.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Hans-Joerg Frieden (hfrieden@fix.uni-trier.de) wrote:
  13. : Stephan Schaem (sschaem@teleport.com) wrote:
  14. : :  Why the table, and the z buffer? what are those 3 instructions?
  15. : I do fill a zbuffer with the information from the raycaster, so that 
  16. : while I do the raycasting, the picasso blitter can clear the buffers I am 
  17. : writing to... The three instructions (from memory, dunno if I am correct 
  18. : here) are
  19.  
  20.  You you so a setrast or rectfill on the picaso the function return
  21.  immediatly?!?! 
  22.  
  23.  And you fill a zbuffer so you can use the picaso blitter? this is unclear.
  24.  
  25. : loop:
  26. :     move.b    (a0,d0.w),(a1)+
  27. :     addq    #2,a0
  28. :     dbra    d1,loop
  29.  
  30.  what is this suposed to do.... I suposed its just part of the loop,
  31.  otherwise (a0,d0.w) is superfluous. And why +2? what data are you
  32.  skyping?
  33.  
  34. : :  How is the picaso update done? you write the the buffer directly?
  35. : :  you use an OS function? How long does it take the OS to update
  36. : :  a the fatsmem buffer? I'm asking cause this might be a major cause
  37. : :  for your slowdown.
  38. : I do write into a fastram buffer and then copy it to the card ram with 
  39. : word writes. The Picasso is ZII, so word writes are better than byte 
  40. : writes. I can directly access the picasso memory, as a linear chunky 
  41. : stream, I don't need OS functions for that. I am using the rtgmaster 
  42. : library at the moment, with my rtgPICA sublib, so this will essentially 
  43. : also work on a CyberGfx or an EGS board
  44.  
  45.  Is just copiying the buffer in byte VS copying in work + rendering
  46.  in byte in fast slower?
  47.  
  48.  You might want to make your code 16bit and write directly to the card
  49.  and take big advantge of bus memory access overlap. Doing might nake
  50.  you stuff run faster then the 8bit version :)
  51.  
  52.  if you do this you will run at picaso max frame rate:
  53.  
  54.  REPEAT 16
  55.  move.w    d1,d4
  56.  move.b d0,d4
  57.  movea.l d4,a0
  58.  movea.w (a0),(a1)+
  59.  addx.l    d3,d0
  60.  addx.l d2,d1
  61.  ENDR
  62.  
  63.  This should run at picaso speed even on a 16mhz 030, so at
  64.  the speed to clear picaso memory. (My guess, but you should try)
  65.  
  66.  Stephan
  67.