1testaccel(6)                  Svgalib User Manual                 testaccel(6)
2
3
4

NAME

6       testaccel - test the old style blitter functions and vga_ext_set()
7

SYNOPSIS

9       testaccel [ -nowait ] [ { all | videomodes... } ]
10
11

DESCRIPTION

13       Program  to test the old blitter functions in a screen mode. Checks the
14       8-bit wide color lookup tables on Mach32's with type 2  DACs  as  well.
15       [I  think  '6bpp' and '8bpp' are silly names for the 8-bit LUT thing --
16       bpp is bits per pixel, in the framebuffer - HH :-)]
17
18       After each test it waits for a key press except when -nowait is given.
19
20       You can specify names of modes to test on the command line  or  specify
21       all to loop over all svgalib modes.
22
23       The  program  will run on any card, however, most of the tests can only
24       be performed on a Mach32.
25
26       The subtest are in turn:
27
28
29       1 -    For each 256 color mode the program sees if it  is  possible  to
30              enable  a  special  mode with 8 bits per color in the RGB lookup
31              table. If so, for example 256 different shades of  blue  can  be
32              implemented.  The program displays as much blue shades as possi‐
33              ble in a shade from dark (left) to bright (right) and some  text
34              in  an  opposite  direction  on  top of it. In case 56 different
35              shades are supported, the screen is divided and shows a rough 64
36              shades  scale  (ordinary vga) on top and the smooth shade below.
37              Right now 256 different shades are only  possible  on  a  Mach32
38              with RAMDAC of type 2.  For modes with few pixels only, the pro‐
39              gram might fail to print the text properly and  will  'wrap'  it
40              around the screen edges.
41
42       2 -    Draws a bouncing 'linux' logo stopping after a fixed amount of 1
43              pixel steps. Uses vga_bitblt(3) on the image plus  a  one  pixel
44              outline  in  border  color  to move the pixel around the screen.
45              The Mach32 is very fast in this discipline.
46
47       3 -    Draws filled rectangles using vga_fillblt(3).  At first a series
48              of  larger  to  smaller centered rectangles is drawn to fill the
49              screen.  For 256 or less color modes these will use  a  sequence
50              of  256  random  colors. For 32K or more color modes it will use
51              colors 0 up too, however, you'll usually just  see  a  repeating
52              series  of  blues  (limitations of monitor/human eye, the blue's
53              differ not enough for the eye to see). Then a  bunch  of  random
54              boxes  in  random  places  is drawn overwriting each other.  The
55              Mach32 is very fast in this discipline.
56
57       4 -    Draws small fish bitmaps and then larger linux logos  in  random
58              positions  using  vga_imageblt(3).  They just overlap each other
59              The Mach32 is poor in this discipline.  If  you  have  a  linear
60              frame  buffer  enabled, it is used instead to perform this func‐
61              tion (even if the program does not use  a  linear  frame  buffer
62              otherwise).  Usually this is twice as fast for Mach32.
63
64       5 -    Use vga_hlinelistblt(3) o do some simple polygon fills: squares,
65              circles, diamonds of random sizes, positions and colors.  Again,
66              the  Mach32  is very fast in this discipline, but somehow slowed
67              down by the imperfect prototype of  this  function.  Again,  the
68              polygons just overlap each other.
69
70              The  resp.  tests  will only be performed where supported by the
71              hardware. For Mach32 this means only SVGA 256,  32K,  64K  color
72              modes.   The  linear frame buffer emulated vga_imageblt(3) works
73              for all SVGA modes though.
74
75       The program prints the number of pixels drawn  and  the  time  required
76       plus  the  resulting  rate  of  pixels  per second. For Mach32 the rate
77       depends on the amount of screen accesses (2 per pixel move for vga_bit‐
78       blt(3),  1  per  pixel move for vga_fillblt(3) and vga_hlinelistblt(3);
79       also twice bytes are affected for 32K, 64K color modes). On a non  VRAM
80       card  you'll  also  note  the effect of the memory access caused by the
81       generation of the video frames  (more  colors/rez/sync  rates  =>  less
82       speed).   Also,  higher modes draw more pixels per call, thus less call
83       and setup overhead.
84
85       Here are the rates for my card on an almost idle 486 EISA system  which
86       should be fairly optimal (2MB VRAM EISA Mach32) except maybe the linear
87       frame buffer emulated imageblt which might be faster on PCI card:
88
89       Testing mode 1: G320x200x16...
90       Dacwidth test not applicable.
91       Testing mode 2: G640x200x16...
92       Dacwidth test not applicable.
93       Testing mode 3: G640x350x16...
94       Dacwidth test not applicable.
95       Testing mode 4: G640x480x16...
96       Dacwidth test not applicable.
97       Testing mode 5: G320x200x256...
98       Warning: Resolution too small, displayed text is
99       probably scrambled.
100
101       Has support for CLUT width 8 bit
102       Testing mode 6: G320x240x256...
103       Dacwidth test not applicable.
104       Testing mode 7: G320x400x256...
105       Dacwidth test not applicable.
106       Testing mode 8: G360x480x256...
107       Dacwidth test not applicable.
108       Testing mode 9: G640x480x2...
109       Dacwidth test not applicable.
110       Testing mode 10: G640x480x256...
111       Has support for CLUT width 8 bit
112       Has BitBlt: 176610000 Pixels in 6.49 seconds -> 27.21 Megapels
113       Has FillBlt: 217884171 Pixels in 4.55 seconds -> 47.89 Megapels
114       Has ImageBlt: 17085000 Pixels in 3.07 seconds -> 5.57 Megapels
115       Has HlineLst: 20192124 Pixels in 0.57 seconds -> 35.42 Megapels
116       Testing mode 11: G800x600x256...
117       Has support for CLUT width 8 bit
118       Has BitBlt: 176610000 Pixels in 6.65 seconds -> 26.56 Megapels
119       Has FillBlt: 343102613 Pixels in 6.23 seconds -> 55.07 Megapels
120       Has ImageBlt: 17085000 Pixels in 3.06 seconds -> 5.58 Megapels
121       Has HlineLst: 33166399 Pixels in 0.78 seconds -> 42.52 Megapels
122       Testing mode 12: G1024x768x256...
123       Has support for CLUT width 8 bit
124       Has BitBlt: 176610000 Pixels in 6.88 seconds -> 25.67 Megapels
125       Has FillBlt: 603141286 Pixels in 9.78 seconds -> 61.67 Megapels
126       Has ImageBlt: 17085000 Pixels in 3.07 seconds -> 5.57 Megapels
127       Has HlineLst: 52958845 Pixels in 1.08 seconds -> 49.04 Megapels
128       Testing mode 13: G1280x1024x256...
129       Has support for CLUT width 8 bit
130       Has BitBlt: 176610000 Pixels in 7.10 seconds -> 24.87 Megapels
131       Has FillBlt: 1063820849 Pixels in 16.16 seconds -> 65.83 Megapels
132       Has ImageBlt: 17085000 Pixels in 3.07 seconds -> 5.57 Megapels
133       Has HlineLst: 95798478 Pixels in 1.75 seconds -> 54.74 Megapels
134       Testing mode 14: G320x200x32K...
135       Dacwidth test not applicable.
136       Has BitBlt: 176610000 Pixels in 12.30 seconds -> 14.36 Megapels
137       Has FillBlt: 41317334 Pixels in 3.61 seconds -> 11.45 Megapels
138       Has ImageBlt: 17085000 Pixels in 5.93 seconds -> 2.88 Megapels
139       Has HlineLst: 3411068 Pixels in 0.23 seconds -> 14.83 Megapels
140       Testing mode 15: G320x200x64K...
141       Dacwidth test not applicable.
142       Has BitBlt: 176610000 Pixels in 12.29 seconds -> 14.37 Megapels
143       Has FillBlt: 42351016 Pixels in 4.12 seconds -> 10.28 Megapels
144       Has ImageBlt: 17085000 Pixels in 5.93 seconds -> 2.88 Megapels
145       Has HlineLst: 3561694 Pixels in 0.23 seconds -> 15.49 Megapels
146       Testing mode 16: G320x200x16M...
147       Dacwidth test not applicable.
148       Has ImageBlt: 17085000 Pixels in 8.83 seconds -> 1.93 Megapels
149       Testing mode 17: G640x480x32K...
150       Dacwidth test not applicable.
151       Has BitBlt: 176610000 Pixels in 13.38 seconds -> 13.20 Megapels
152       Has FillBlt: 217723964 Pixels in 7.95 seconds -> 27.39 Megapels
153       Has ImageBlt: 17085000 Pixels in 5.94 seconds -> 2.88 Megapels
154       Has HlineLst: 19579110 Pixels in 0.74 seconds -> 26.46 Megapels
155       Testing mode 18: G640x480x64K...
156       Dacwidth test not applicable.
157       Has BitBlt: 176610000 Pixels in 13.37 seconds -> 13.21 Megapels
158       Has FillBlt: 221608034 Pixels in 8.28 seconds -> 26.76 Megapels
159       Has ImageBlt: 17085000 Pixels in 5.93 seconds -> 2.88 Megapels
160       Has HlineLst: 21048202 Pixels in 0.79 seconds -> 26.64 Megapels
161       Testing mode 19: G640x480x16M...
162       Dacwidth test not applicable.
163       Has ImageBlt: 17085000 Pixels in 8.82 seconds -> 1.94 Megapels
164       Testing mode 20: G800x600x32K...
165       Dacwidth test not applicable.
166       Has BitBlt: 176610000 Pixels in 13.97 seconds -> 12.64 Megapels
167       Has FillBlt: 357205415 Pixels in 12.22 seconds -> 29.23 Megapels
168       Has ImageBlt: 17085000 Pixels in 5.92 seconds -> 2.89 Megapels
169       Has HlineLst: 34391335 Pixels in 1.16 seconds -> 29.65 Megapels
170       Testing mode 21: G800x600x64K...
171       Dacwidth test not applicable.
172       Has BitBlt: 176610000 Pixels in 13.97 seconds -> 12.64 Megapels
173       Has FillBlt: 348943970 Pixels in 11.87 seconds -> 29.40 Megapels
174       Has ImageBlt: 17085000 Pixels in 5.93 seconds -> 2.88 Megapels
175       Has HlineLst: 34510200 Pixels in 1.17 seconds -> 29.50 Megapels
176       Testing mode 22: G800x600x16M...
177       Dacwidth test not applicable.
178       Has ImageBlt: 17085000 Pixels in 8.83 seconds -> 1.93 Megapels
179       Testing mode 23: G1024x768x32K...
180       Dacwidth test not applicable.
181       Has BitBlt: 176610000 Pixels in 14.60 seconds -> 12.10 Megapels
182       Has FillBlt: 608000981 Pixels in 18.62 seconds -> 32.65 Megapels
183       Has ImageBlt: 17085000 Pixels in 5.93 seconds -> 2.88 Megapels
184       Has HlineLst: 53767429 Pixels in 1.72 seconds -> 31.26 Megapels
185       Testing mode 24: G1024x768x64K...
186       Dacwidth test not applicable.
187       Has BitBlt: 176610000 Pixels in 14.60 seconds -> 12.10 Megapels
188       Has FillBlt: 601666798 Pixels in 18.80 seconds -> 32.00 Megapels
189       Has ImageBlt: 17085000 Pixels in 5.92 seconds -> 2.89 Megapels
190       Has HlineLst: 52037798 Pixels in 1.67 seconds -> 31.16 Megapels
191       Testing mode 32: G720x348x2...
192       Dacwidth test not applicable.
193       Testing mode 33: G320x200x16M32...
194       Dacwidth test not applicable.
195       Has ImageBlt: 17085000 Pixels in 11.60 seconds -> 1.47 Megapels
196       Testing mode 34: G640x480x16M32...
197       Dacwidth test not applicable.
198       Has ImageBlt: 17085000 Pixels in 11.62 seconds -> 1.47 Megapels
199       Testing mode 35: G800x600x16M32...
200       Dacwidth test not applicable.
201       Has ImageBlt: 17085000 Pixels in 11.62 seconds -> 1.47 Megapels
202
203       This demo is part of svgalib and can be found in the  demos/  subdirec‐
204       tory of the original svgalib distribution. However, it is not installed
205       in the system by default, s.t. it is unclear where you can find  it  if
206       your  svgalib was installed by some linux distribution. Even then, when
207       you have the demo on your system, you probably won't have  the  sources
208       s.t. it is only of limited use for you.
209
210       In  case  of  any such problem, simply get an svgalib distribution from
211       the net. You even don't need to install it. Just  make  in  the  demos/
212       subdirecty.  As  of  this  writing, svgalib-1.2.12.tar.gz is the latest
213       version  and  can  be  retrieved  by  ftp   from   sunsite.unc.edu   at
214       /pub/Linux/libs/graphics  and tsx-11.mit.edu at /pub/linux/sources/libs
215       which will most probably be mirrored by a site close to you.
216
217

SEE ALSO

219       svgalib(7), vgagl(7), libvga.config(5), vga_ext_set(3),  vga_bitblt(3),
220       vga_fillblt(3),    vga_hlinelistblt(3),    vga_imageblt.3    threed(6),
221       accel(6), bg_test(6), eventtest(6),  forktest(6),  fun(6),  keytest(6),
222       mousetest(6), scrolltest(6), speedtest(6), spin(6), testgl(6), testlin‐
223       ear(6), vgatest(6), plane(6), wrapdemo(6)
224
225

AUTHOR

227       This manual page was edited  by  Michael  Weller  <eowmob@exp-math.uni-
228       essen.de>. He also wrote thise demo and it's documentation.
229
230
231
232Svgalib (>= 1.2.11)              29 July 1997                     testaccel(6)
Impressum