[comp.windows.x] Wierd X problem

mcintyre@turing.cs.rpi.edu (David McIntyre) (12/06/89)

I have a very strange problem for all of you!  This problem occurs
inside a large X application, built in Objective-C, X, and an
object-oriented database system (ROSE).

I have a window, which contains a vpaned widget.  That widget contains
a box or two, and a hpaned widget.  That widget contains a box
and a viewport, which contains a 2000x2000 pixel box.  The
application uses primitive X functions to draw in that box.
The database system holds the information necessary for exposures
and persistence.

Here is the problem:  The very first time I use an Xlib drawing
function (like XFillArc, or XDrawRectangle) it takes 30-45 
seconds (on a Sun 3/60) and 20-30 seconds (on a SS-1).

From then on, everything works at a normal speed.  It is only
the first graphics call on the box that delays.  During the
delay, the mouse freezes (actually, the whole display freezes).

This happens on the Sun 3, and on the SS-1, using the Sun 3
to run the client.

Using the synchronous debugging mode, I have traced the delay
down to the very graphical function.  Can someone tell me what
is going on???  This may drive me nutso, and then wouldn't
you feel bad......

				Thanks, Dave

Dave "mr question" McIntyre     |      "....say you're thinking about a plate
mcintyre@turing.cs.rpi.edu      |       of shrimp.....and someone says to 
office : 518-276-8633		|	you `plate,' or `shrimp'......"
home   : 518-271-6664		|