Many thanks for your help. please see my comment below.

> [Thread transferred from fltk.development]
>
> > In my using of FLTK, I found even I write a very simple=20
> > program(only has a empty window, no any widget), when it run=20
> > in my arm board(arm:240MHz, ram:64MB), it will takes about=20
> > 1.2 seonds to display, this time to too long. Can I have any=20
> > method to improve this? Thanks.
>
> You will need to give us a lot more info;
>
> - what version of fltk are you using

fltk-2.0-r6136

> - what host OS
linux-2.6.24

> - what tool chain
arm-linux-g++

> - what window manager / windowing system

Tiny-x

> One thing that occurs to me is that fltk-2 can be slow to start
> initially if it is loading in a lot of fonts and so forth (it seems to
> load its fonts differently from fltk-1.x versions).
> 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?

> I mainly use fltk-1.3 now, and do not see responses anywhere near as
> slow as you describe.

Yes, if the window has initialize, any handle will has quick response, but the 
initialze is slow.

> There are quite a range of performance analysis tools available these
> days that will monitor your code as it runs and provide details of how
> long each part is taking; it might be informative to instrument your
> code start-up sequence and see where the time is really going.
> My own personal experience suggests that it is rarely inside fltk itself
> - the time is mainly lost in system and support operations... But
> without measuring this we can not know for certain.

I try to record the time cost in the each process when display a empty window, 
and found the 2 place cost the most of the time, one is draw() function, the 
other is setfont() function.

>
> --=20
> Ian
>
>
>
>
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS=
> 14 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