home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume9 / xengine / patch1 / xengine.patch1
Encoding:
Text File  |  1993-05-04  |  11.3 KB  |  314 lines

  1. diff -rc old/Makefile new/Makefile
  2. *** old/Makefile    Tue Oct  2 19:22:43 1990
  3. --- new/Makefile    Tue Oct  2 19:24:18 1990
  4. ***************
  5. *** 7,13 ****
  6.   #
  7.   
  8.   ###########################################################################
  9. ! # Makefile generated from "Imake.tmpl" and </tmp/IIf.a02029>
  10.   # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  11.   #
  12.   # Platform-specific parameters may be set in the appropriate .cf
  13. --- 7,13 ----
  14.   #
  15.   
  16.   ###########################################################################
  17. ! # Makefile generated from "Imake.tmpl" and </tmp/IIf.a01700>
  18.   # $XConsortium: Imake.tmpl,v 1.77 89/12/18 17:01:37 jim Exp $
  19.   #
  20.   # Platform-specific parameters may be set in the appropriate .cf
  21. ***************
  22. *** 225,231 ****
  23.   ###########################################################################
  24.   # start of Imakefile
  25.   
  26. ! # SCCS ID : %W%   %G%
  27.   #
  28.   #   Imakefile - Imakefile for xengine
  29.   #
  30. --- 225,231 ----
  31.   ###########################################################################
  32.   # start of Imakefile
  33.   
  34. ! # SCCS ID : @(#)Imakefile    1.1   9/12/90
  35.   #
  36.   #   Imakefile - Imakefile for xengine
  37.   #
  38. diff -rc old/README new/README
  39. *** old/README    Tue Oct  2 19:22:44 1990
  40. --- new/README    Tue Oct  2 19:23:16 1990
  41. ***************
  42. *** 31,65 ****
  43.        70   120    PolyFillRectangle
  44.        71   100    PolyFillArc
  45.   
  46.   
  47. ! --- Benchmarks **
  48.   
  49. ! Machine                Server Release            rpm
  50.   -----------------------------------------------------------------------------
  51.   SparcStation 370 Memory 56M     X11R4(fix-14),256 color         230
  52.   SparcStation 1          X11R4(applied fix-14) 256 color    186.33
  53.   luna-88K,2 CPU,mach Memory 32M  X11R4, 16 color           180  *1
  54. ! Sun 3/60C(CG4)            X11R4 fix-14 gcc-1.35.1    16color about 90
  55.   Sun 3/60C               X11R4 no-fix             73.3
  56.   CIT-X Terminal          X11R3 mono            45.5
  57.   X-mint Memory 8M                X11R3,mono                      45
  58.   X-station Memory 8M             X11R3,256 color                 40
  59.   NEWS841 memory 16M              X11R2, 16 color                 11
  60.   X640                X11R3?(mono)            10.4
  61.   MASSCOMP RTU            X11R2? 16 color            8.5
  62.   
  63. ! *1 beta version OS(MACH).
  64.   
  65. ! ** These rpm are *not* official. If you want exact server's performance,
  66. !    use other benchmark tools (such as xperf or xtest).
  67.   
  68. ! --- Special thanks to:
  69. !     
  70. !     Yasushi Ohba(YAMAHA/ISL)    Mathematical suggestion. 
  71. !     Toshihisa Sadakata(YAMAHA/ISL)    Engine movement suggestion. 
  72. !     Susumu Mukawa (NTT)        Benchmark data correction.
  73. !     Kazunari "ISSEY" Nakamura (NKK) Benchmark data correction.
  74.   
  75.       Send any comments, bug reports, etc. are welcome.
  76.   
  77.   
  78. --- 31,99 ----
  79.        70   120    PolyFillRectangle
  80.        71   100    PolyFillArc
  81.   
  82. + --- Special thanks to:
  83.   
  84. !     Yasushi Ohba (YAMAHA/ISL)    
  85. !                 Mathematical.
  86. !     Toshihisa Sadakata (YAMAHA/ISL)
  87. !                 Engine movement. 
  88. !      Hitoshi Tsujimura <hitosi@sinbasi.trad.pfu.fujitsu.co.jp> 
  89. !                 Bug report & fix.
  90.   
  91. ! --- Benchmarks
  92. !     
  93. !                xengine benchmark
  94. ! Thanks to :
  95. !     "Greg Onufer" <greg@cheers.Bungi.COM>
  96. !     Kazunari "ISSEY" Nakamura <kazu@the.nkk.co.jp>
  97. !     Susumu-Mukawa <mukawa@ctec.tn-sec.ntt.jp>
  98. !     kaneyasu@src.ricoh.co.jp (Noriyuki Kaneyasu)
  99. !     palm@icrl.mew.mei.co.jp (Steve [kiwin] Palm)
  100. !     saitoh@icsts1.osaka-u.ac.jp (SAITOH Akinori)
  101. !     sato@rokoh.gen.u-tokyo.ac.jp (Keisuke (@_@) SATO)
  102. !     take@studiogen.co.jp (Wataru Takenouchi)
  103. ! Machine                Server                RPM
  104.   -----------------------------------------------------------------------------
  105. + DEC Station 3100        X11R4(fix-?),mono        539  *4
  106. + DEC Station 5000/200 16M    X11R4(fix-14),256 color         473  
  107. + Sun4/370GXP SPARC 16MHz(?)     X11R4(fix-12),mono        438
  108. + SparcStation 470 Memory 32M     X11R4(fix-14),256color (GX)     301.8 
  109. + DEC Station 3100/200 16M    X11R4(fix-14),256 color         248 ~ 268 
  110. + SparcStation IPC Memory 24M     X11R4(fix-6), 256 color        234
  111.   SparcStation 370 Memory 56M     X11R4(fix-14),256 color         230
  112. + Sun4c/60GX  10MHz(?)         X11R4(fix-12),256 color        200
  113.   SparcStation 1          X11R4(applied fix-14) 256 color    186.33
  114.   luna-88K,2 CPU,mach Memory 32M  X11R4, 16 color           180  *1
  115. ! Sun4/260C  10MHz(?)         X11R4(fix-12), 256 color    155
  116. ! Sun3/50M 12M            X11R4(fix-14+local patch)mono    136  *3
  117. ! Sun3/150M  16MHz         X11R4(fix-12), mono        132
  118. ! Sun 3/60C(CG4)            X11R4 fix-14 gcc-1.35.1    16color    about 90
  119. ! Sun3/110LC 16MHz         X11R4(fix-12),256 color        75
  120.   Sun 3/60C               X11R4 no-fix             73.3
  121.   CIT-X Terminal          X11R3 mono            45.5
  122. + NWS-1750 + XMiNT          X11R3? mono            46 ~ 48
  123.   X-mint Memory 8M                X11R3,mono                      45
  124.   X-station Memory 8M             X11R3,256 color                 40
  125. + Sun-2/120,7M            X11R4(fix-14),gcc-1.37.1,mono    21.6
  126.   NEWS841 memory 16M              X11R2, 16 color                 11
  127.   X640                X11R3?(mono)            10.4
  128. + NWS1450 (color)             ??                10   *2 
  129.   MASSCOMP RTU            X11R2? 16 color            8.5
  130. + PC-Xview 386sx 16MHz Memory 4M 
  131. +         16bitBUS-VGA    X11R3                3.5
  132.   
  133. ! *1  OS is Beta version.
  134.   
  135. ! *2  Why slow?
  136.   
  137. ! *3  Local optimize was applied to server.
  138.   
  139. + *4  Very fast !
  140.       Send any comments, bug reports, etc. are welcome.
  141.   
  142.   
  143. ***************
  144. *** 68,71 ****
  145. --- 102,111 ----
  146.                           InSoft System Lab.
  147.                           YAMAHA Corp.
  148.                           shutoh@isl.yamama.co.jp
  149.   
  150. diff -rc old/patchlevel.h new/patchlevel.h
  151. *** old/patchlevel.h    Tue Oct  2 19:22:44 1990
  152. --- new/patchlevel.h    Tue Oct  2 19:21:52 1990
  153. ***************
  154. *** 1,2 ****
  155.   
  156. ! #define PATCHLEVEL 0
  157. --- 1,3 ----
  158.   
  159. ! #define PATCHLEVEL 1
  160. diff -rc old/xengine.c new/xengine.c
  161. *** old/xengine.c    Tue Oct  2 19:22:45 1990
  162. --- new/xengine.c    Tue Oct  2 19:21:52 1990
  163. ***************
  164. *** 1,4 ****
  165. ! static char     sccsid[] = "@(#)xengine.c    1.9   9/19/90";
  166.   
  167.   /*
  168.    * xengine - reciprocating engine for X     :-)
  169. --- 1,4 ----
  170. ! static char     sccsid[] = "@(#)xengine.c    1.10   10/2/90";
  171.   
  172.   /*
  173.    * xengine - reciprocating engine for X     :-)
  174. ***************
  175. *** 119,167 ****
  176.       /* Get graphic context     */
  177.   
  178.       gcPiston = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  179. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[0], &srcColor, &dummyColor);
  180.   
  181.       XSetForeground(XtDisplay(engine), gcPiston, srcColor.pixel);
  182.   
  183.       gcShaft = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  184. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[1], &srcColor, &dummyColor);
  185.   
  186.       XSetForeground(XtDisplay(engine), gcShaft, srcColor.pixel);
  187.       XSetLineAttributes(XtDisplay(engine), gcShaft, 2, LineSolid, CapButt, JoinMiter);
  188.   
  189.       gcCylinder = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  190. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[2], &srcColor, &dummyColor);
  191.   
  192.       XSetForeground(XtDisplay(engine), gcCylinder, srcColor.pixel);
  193.   
  194.       gcRoter = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  195. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[3], &srcColor, &dummyColor);
  196.   
  197.       XSetForeground(XtDisplay(engine), gcRoter, srcColor.pixel);
  198.   
  199.       gcBack = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  200. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[4], &srcColor, &dummyColor);
  201.   
  202.       XSetForeground(XtDisplay(engine), gcBack, srcColor.pixel);
  203.   
  204.       gcDep = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  205. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[5], &srcColor, &dummyColor);
  206.   
  207.       XSetForeground(XtDisplay(engine), gcDep, srcColor.pixel);
  208.   
  209.       gcPre = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  210. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[6], &srcColor, &dummyColor);
  211.   
  212.       XSetForeground(XtDisplay(engine), gcPre, srcColor.pixel);
  213.   
  214.       gcEngine = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  215. !     XAllocNamedColor(XtDisplay(engine), DefaultColormap(XtDisplay(engine), 0), colors[7], &srcColor, &dummyColor);
  216.   
  217.       XSetForeground(XtDisplay(engine), gcEngine, srcColor.pixel);
  218.   
  219.       /* Create engine Pixmap */
  220.   
  221. !     enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepth(XtDisplay(engine), 0));
  222.   
  223.       /* Interval timer start     */
  224.       XtAddTimeOut(1, Cycle, NULL);
  225. --- 119,168 ----
  226.       /* Get graphic context     */
  227.   
  228.       gcPiston = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  229. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[0], &srcColor, &dummyColor);
  230.   
  231.       XSetForeground(XtDisplay(engine), gcPiston, srcColor.pixel);
  232.   
  233.       gcShaft = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  234. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[1], &srcColor, &dummyColor);
  235.   
  236.       XSetForeground(XtDisplay(engine), gcShaft, srcColor.pixel);
  237.       XSetLineAttributes(XtDisplay(engine), gcShaft, 2, LineSolid, CapButt, JoinMiter);
  238.   
  239.       gcCylinder = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  240. !     XSetGraphicsExposures(XtDisplay(engine), gcCylinder, False);
  241. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[2], &srcColor, &dummyColor);
  242.   
  243.       XSetForeground(XtDisplay(engine), gcCylinder, srcColor.pixel);
  244.   
  245.       gcRoter = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  246. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[3], &srcColor, &dummyColor);
  247.   
  248.       XSetForeground(XtDisplay(engine), gcRoter, srcColor.pixel);
  249.   
  250.       gcBack = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  251. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[4], &srcColor, &dummyColor);
  252.   
  253.       XSetForeground(XtDisplay(engine), gcBack, srcColor.pixel);
  254.   
  255.       gcDep = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  256. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[5], &srcColor, &dummyColor);
  257.   
  258.       XSetForeground(XtDisplay(engine), gcDep, srcColor.pixel);
  259.   
  260.       gcPre = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  261. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[6], &srcColor, &dummyColor);
  262.   
  263.       XSetForeground(XtDisplay(engine), gcPre, srcColor.pixel);
  264.   
  265.       gcEngine = XCreateGC(XtDisplay(engine), XtWindow(engine), (unsigned long) 0, NULL);
  266. !     XAllocNamedColor(XtDisplay(engine), DefaultColormapOfScreen(XtScreen(engine)), colors[7], &srcColor, &dummyColor);
  267.   
  268.       XSetForeground(XtDisplay(engine), gcEngine, srcColor.pixel);
  269.   
  270.       /* Create engine Pixmap */
  271.   
  272. !     enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
  273.   
  274.       /* Interval timer start     */
  275.       XtAddTimeOut(1, Cycle, NULL);
  276. ***************
  277. *** 187,193 ****
  278.       height = args[1].value;
  279.   
  280.       XFreePixmap(XtDisplay(engine), enginePixmap);
  281. !     enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepth(XtDisplay(engine), 0));
  282.   
  283.   }
  284.   
  285. --- 188,194 ----
  286.       height = args[1].value;
  287.   
  288.       XFreePixmap(XtDisplay(engine), enginePixmap);
  289. !     enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
  290.   
  291.   }
  292.   
  293. ***************
  294. *** 331,334 ****
  295. --- 332,337 ----
  296.       return (cycle);
  297.   
  298.   }
  299.   
  300.