Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!natinst!brian From: brian@natinst.com (Brian H. Powell) Newsgroups: comp.windows.x Subject: XDrawArc slow Keywords: Sun, MacII, Where do I fix? Message-ID: <4540@natinst.natinst.com> Date: 19 Sep 89 18:12:40 GMT Organization: National Instruments, Austin, TX Lines: 27 I've been doing a little experimental X programming using the book "X Window Applications Programming" by Eric F. Johnson and Kevin Reichard. I did most of these tests on a 8-bit color Mac IIcx, running A/UX 1.1.1b3. (X11R3.) When I ran into the problem below, I tried it on a monochrome Sun as well. (generic (non-purdue) X11R3.) I came to the example about rubber-banding ovals. Basically with a pointer-moved event, you erase the old oval, and draw the new one, using XDrawArc(). It's too slow. I thought it was bad on the Mac taking a second to draw each arc (about 1.5 inches in diameter). The sun took longer than that. I took a quick glance at the X11R3 source code, but couldn't really figure out where the PolyArc drawing takes place. Question 1: Why is it so slow? Question 2: Can you give me a pointer to the code that does the actual drawing? Please mail responses; I'll summarize if there's enough interest. Thanks in advance. Brian H. Powell National Instruments Corp. brian@natinst.com 12109 Technology Blvd. uunet!cs.utexas.edu!natinst!brian Austin, Texas 78727-6204 AppleLink:NATINST (512) 250-9119