On 10.10.2011 10:12, MacArthur, Ian (SELEX GALILEO, UK) wrote:
>
>> The custom dialog paints itself on top of the main app window
>> which has a plot of a function on it drawn on an Fltk_Gl_Window.
>>
>> See the snapshots here;
>> http://www.hyperscope.net/fltk.html
>>
>> But when it first pops up it's blank for about 2 seconds and
>> then the controls get drawn (the input line and the two buttons).
>>
>> I don't understand why the pop up window is so slow to paint
>> itself, seems it should just be immediate.
>
> This is probably something to do with the strucure of your application,
> so we can't really help as we can not reproduce your problem.
>
> What I suggest you do is produce a minimal, compileable, example that
> exhibits the fault and post it here (or on your website) for others to
> examine and see if we can see what the underlying issue is.
>
> You can probably pick up one of the simple GL examples on Greg's website
> (http://www.seriss.com/people/erco/fltk/#OpenGlSimpleWidgets) and just
> modify that to include a version of your dialog, and see if that
> exhibits the same slowness...

Good idea, but maybe it would be easier to add some output statements
to the draw() methods of the two windows to see if/when they are called.
Maybe you (Marko) need to add fflush(stdout) or something to flush the
output buffers immediately. This could help finding where the delay is.

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

Reply via email to