Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!cvl!ai.etl.army.mil!anneb From: anneb@ai.etl.army.mil (Anne Brink) Newsgroups: comp.windows.x Subject: Question about XCopyArea Keywords: XSun (is there a way around this?) Message-ID: <401@ai.etl.army.mil> Date: 15 Feb 90 14:28:30 GMT Distribution: na Organization: USAETL, Fort Belvoir, Virginia Lines: 39 Hi there, fellow X-types. I need your help. I'm working on a graphics application in X, and I need a fast copy routine for pixmaps. I'm calling it several zillion times in the space of oh, a few minutes, and it takes over the entire machine. Right now, I have the code looping forever, with 5-7 XCopyArea() calls followed by a mouse click check in each iteration. The area copied is either 512x512 or 256x256. I cannot use something like bcopy(), since I need to perform logical operations with the copy. The response is ugly: After I click on the mouse, it takes over 20 iterations for the program acknowledge the click! (I lost count somewhere around 20, but it kept going for a while.) It's also amusing to move the mouse into another window and see how long it takes for the window manager to register the move. I've tried to slow things down with some sleep calls to let things catch up, but it hasn't made a noticeable difference. Maybe I'm not sleeping long enough. I had tried up to a half second under R3. We are now using X11R4 pretty much straight from MIT, on a Sun3/260 with a color monitor. (We don't have OpenWindows yet.) Has anyone run up against the same problem? Could you solve it? How?!? Is there an alternative solution? I've read the Xlib manuals, and nothing springs out of the pages at me. Does OpenWindows have good bit-blitting support? When I programmed in SunView way back when, the pixrect copy routines in SunView didn't seem to cause me as much trouble. I'd prefer it you e-mailed to me, since right now, our net connection is a bit flakey. Even hints that I'm in a dream world will be helpful, 'cause then I can try to find some other work around. I'll summarize anything I get if there's enough interest. Thanks very much for reading this and for your help! Anne Brink anneb@etl.army.mil (Internet) ...!uunet!etl.army.mil!anneb (UUCP, sort of) -- #################################||############################################ Anne Brink: anneb@etl.army.mil || Open the Spring Training Camps! ...!uunet!etl.army.mil!anneb || Orioles in '90 #################################||############################################