On 02/06/12 13:59, Shon Pritchett wrote:
> Hello Everyone,
> 
> I am using a GlWindow to display some images off disk in sequential order.  
> I'm having some trouble getting the GlWindow to refresh in a timely fashion.
> 
> I am using the add_timeout function to register my opengl setup code and then 
> I'm using the repeat_timeout function to update the screen at a fixed 
> interval the intention being every 1/60th of a second. In the update function 
> I'm only displaying a QUAD with a texture on it and then swapping that 
> texture out at every fixed tick.
> 
> Is there some way to force the window to update faster?

        Probably an issue for the fltk.opengl group.
        Are you saying the add_timeout() function is triggering /slower/ than 
60fps?

        Maybe try adding some code to detect your actual FPS rate.

        What does your timer function do to retrigger drawing?
        Is it just calling redraw(), or something else?

        Do you suspect FLTK is slowing it down, or perhaps something
        else such as opengl's buffer swapping is slowing it down?
        Have you enabled double buffering, etc?

        I suggest moving this thread -> fltk.opengl, as likely
        this will get into the specifics of opengl programming
        that will be noise to most folks on fltk.general.

        When you open a new thread there, I suggest posting
        a simple single file /compilable/ example that does
        as you describe, and include code that shows the FPS rate
        and tell us what your FPS rate is.

        Perhaps the issue is something specific with your platform
        hardware (graphics/monitor combo) or software (X windows, opengl
        drivers, etc), or it might be a usage issue; we can't tell until
        we see code.

        Certainly opengl should be able to go really fast.
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to