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

  1. Path: grafix.xs4all.nl!john.hendrikx
  2. Date: Sun, 10 Mar 96 21:13:49 GMT+1
  3. Newsgroups: comp.sys.amiga.programmer
  4. Distribution: world
  5. Subject: Re: Amiga doesn`t need Pl
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=iso-8859-1
  8. Content-Transfer-Encoding: 8bit
  9. From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
  10. Message-ID: <john.hendrikx.4ku6@grafix.xs4all.nl>
  11. Organization: Private
  12.  
  13. In a message of 08 Mar 96 "jyrki Saarinen" wrote to All:
  14.  
  15.  >> Most of the stuff I've seen here is 'demo' only.  For example, using 64K
  16.  >> for a single texture and stuff like 256K loop-up tables are quite 
  17.  >> unrealistic for real games.
  18.  
  19.  jS> Please.. Using 64k alignment is not going to stop you putting several
  20.  jS> smaller textures into one 64k area, or have several of them thus
  21.  jS> needing only 64k of extra memory.
  22.  
  23. No, not alignment, I said 64K/texture.  Some of the loops made use of that to
  24. gain 1 or 2 cycles.  What percentage of drawing a frame do you people think the
  25. innerloops take anyway?  My guess would be around 30-50% (*) depending on the
  26. engine (REAL life ones), I doubt that warrants wasting such huge amounts of
  27. memory.
  28.  
  29. (*) 30-50%:
  30.  
  31. Each DOOM scene has usually atleast 320 different wall-columns to be drawn,
  32. probably much more depending on how many different height-levels are in view. 
  33. On average I think around 1000-2000 seperate wall-columns to be drawn would be
  34. a good guess (for a 320 pixel wide screen). Something similair goes for the
  35. floor and ceilings, I guess that around 500-1000 different horizontal
  36. floor/ceiling lines will need to be drawn per frame.
  37.  
  38. This means that the 'outerloop' (let's assume that floor/ceiling and walls all
  39. use the same outerloop) gets executed around 1500-3000 times.  The outerloop
  40. usually contains a couple of high precision divisions and multiplications
  41. (especially for the floors/ceilings).  Around 500 cycles should be spend there
  42. easily, even for a fairly simple DOOM clone.
  43.  
  44. The 'innerloop' is executed around 320x200 times, costing around 20(?)x64000
  45. cycles (all for 030).  The 'outerloop' takes around 1500*500 to 3000*500
  46. cycles.
  47.  
  48.  Innerloop +/- 1280K cycles
  49.  Outerloop +/-  750K-1500K cycles
  50.  
  51. Now add the outer-outerloop (ie, the BSP handling and some pre-calculation and
  52. pre-rotation which only happens once per wall-section), the C2P crap,
  53. sound-fx(?), AI and so on and you'll find that those innerloops are certainly
  54. not worth wasting that much memory for to just get 1 or 2 extra cycles. 
  55. *UNLESS* of course you guys are talking about demo-code where you could get
  56. away with this kind of stuff...
  57.  
  58. Grtz John
  59.  
  60. -----------------------------------------------------------------------
  61.  John.Hendrikx@grafix.xs4all.nl   TextDemo/FastView/Etc... development
  62. -----------------------------------------------------------------------
  63. -- Via Xenolink 1.985B5, XenolinkUUCP 1.1
  64.