Re: drawing speed under Windows
- From: Ron Steinke <rsteinke w-link net>
- To: hp redhat com, dfs research att com
- Cc: gtk-list gnome org
- Subject: Re: drawing speed under Windows
- Date: Wed, 07 Mar 2001 07:29:19 -0800
> From: Havoc Pennington <hp redhat com>
>
> Deborah Swayne <dfs research att com> writes:
> >
> > The use of plural drawing routines (draw_points instead of
> > draw_point, etc) improves drawing speed **twenty-fold** for
> > Windows versions of gtk programs.
>
> The reason draw_points() etc. have never been included is that the
> patch has always been for X11. Under X, multiple draw_point() requests
> in a row get compressed by Xlib anyhow, so draw_points() is not faster
> in any way.
>
> On Windows, the first and best option would be to do something
> similar, i.e. transparently do the compression into a single call,
> without the programmer having to fool around with making an array of
> points or rectangles or whatever.
Mabye the windows version of draw_point could cache the points, and
then call draw_points on a timeout when the main loop executes?
Ron Steinke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]