home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma83.dms / ma83.adf / ArtPro.lha / ArtPRO_Install / RenderLib / Doc / Memory < prev    next >
Text File  |  1997-03-02  |  2KB  |  59 lines

  1.  
  2.                             render.library
  3.                             --------------
  4.               ©1996 by Captain Bifat / TEK neoscientists
  5.  
  6.  
  7.                           memory consumption
  8.  
  9.  
  10.  
  11.   this is a rough overview to memory consumption. this may and will
  12.   change in the future, you must not rely on these data.
  13.  
  14.  
  15.   > histograms
  16.  
  17.  
  18.   HSTYPE              (1)       (2)³         [bytes]
  19.   --------------------------------------------------
  20.   12BIT              20×n¹      6×n 
  21.   15BIT              20×n¹      6×n 
  22.   18BIT              20×n¹      6×n 
  23.   21BIT              20×n¹      6×n 
  24.   24BIT              20×n¹      6×n 
  25.   12BIT_TURBO      16.384²      6×n 
  26.   15BIT_TURBO     131.072²      6×n 
  27.   18BIT_TURBO   1.048.576²      6×n 
  28.  
  29.   (1) memory consumed by the histogram
  30.   (2) additional buffers for ExtractPalette()³.
  31.  
  32.   n = number of color entries inside the histogram
  33.  
  34.   ¹ allocated dynamically
  35.   ² allocated with CreateHistogram()
  36.   ³ 8×n for the 68020 version
  37.  
  38.  
  39.   > palettes
  40.  
  41.  
  42.   HSTYPE                        (1)          [bytes]
  43.   --------------------------------------------------
  44.   12BIT                       8.192
  45.   15BIT                      65.536
  46.   18BIT                     524.288
  47.  
  48.  
  49.   (1) Render()
  50.   
  51.   currently these amounts of memory are only allocated when Render()
  52.   is  called.  (this  behavior may change.) if the allocation fails,
  53.   the palette falls back to the next lower resolution automatically.
  54.   the memory will be freed as soon as the palette changes, i.e. when
  55.   you  call ImportPalette(), ExtractPalette(), or SortPalette(). you
  56.   may  also  call  FlushPalette() to manually free these buffers. if
  57.   you  render  again,  these  buffers will have to be reconstructed,
  58.   though.
  59.