[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

597.0. "Battle of Windows" by VIRGIN::KRAUS () Fri Jul 17 1987 12:21

Specifications:
---------------

Aim : Measure speed of displaying 100 text windows
      from a high level language
      test different compilers and computers  

      draw the screen directly , not into an imaginery
      window
      

      Screen : monochrome ( about 600*400 pixels), otherwise scale up/down


Definition of Textwindow: 
		- consists of a box around the text ( x_size=100 pixels
		  y_size=height=40 pixels), 
		  (box=rectangle line width = 1 pixel)
		- text content "1234567890" (length = 10 )
		- text size 8*16 pixels (or similar) 
		- write text content at position x,y, where x,y pixels
		  centered in the box
                  x,y random values from [1,500],[50,400]
 		  (boxes will overlapp in this text)
                - use 1 call to write the text string (wherever possible)
                  not single character calls
                  (e.g.: TEXT x,y,"1234567890" 
		- to draw a box use a "box a,b,c,d" call
		  ( otherwise set up the box from single lines)
		- compute x,y values with a random generator before
                  measuring the speed
               
-put all paramaters in large integer arrays
.
.
.
x_arr(100)=x
y_arr(100)=y
x1_box_arr(100)=x1  !x*,y* random integer values
y1_box_arr(100)=y1.
x2_box_arr(100)=x2
y2_box_arr(100)=y2
.
..
.
SET_TIMER
DO i=1,100
CALL display_box (x1_box_arr(i),..y2_box_arr())
CALL display_text X_arr(i),y_arr(i),"1234567890"
END DO
GET_TIME

ONE RESULT:

TIME FOR 100 BOXES ON ATARIST 1040 (no blitter)

		1.4 sec 
		===========
using GFA-Basic Compiler V1.0

I hope somebody can make this test with C

Jan
*
T.RTitleUserPersonal
Name
DateLines