> > - what version of fltk are you using
> 
> fltk-2.0-r6136

OK - but be advised that the fltk-2 tree is experimental and not
actively supported. If you need this to be robust, you should consider
using the stable (and better supported) fltk-1.1 series, or if you need
UTF8 support, then you should consider fltk-1.3


> > If so, try fltk-1.1 or fltk-1.3 and see how you get on, or configure
> > fltk-2 to use simpler font options.
> >
> 
> If I am running a empty window, it will still load fonts? I 
> have enable xft in my build option, does this has some 
> effect? How to usr simpler font options in configure?

Redo the configuration of FLTK with XFT disabled (pass the --disable-xft
option to the fltk configure script) or by hand-editing "makeinclude"
and "config.h" to suppress XFT support.
Then re-try the timings.

It is likely that creating any window, even if it has no text in it,
will try and load the default base font set used by fltk, and if your
font server is slow...
Generally, XFT fonts are slower to initialise (more complex) than basic
xlib font handling.
Of course, the basic fonts will not be anti-aliased or anything, so XFT
is much better.

Also try fltk-1.3, both with and without XFT enabled, and compare. I
have some recollection that the fltk-1.x font handling was quicker than
in fltk-2 at start-up and I have never been able to understand why...





SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to