Roundtrip in gdk_flush()



I had gdk_flush() show up with around 25% in a profile, and I noticed
this in gdkevents-x11.c:

        void
        gdk_flush (void)
        {
          XSync (gdk_display, False);
        }

XSync() waits for all requests to be completed before returning, ie,
it is a round-trip. Is there any reason this isn't an XFlush() (which
just flushes XLib's buffers and returns)?


Søren



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]