Re: XForms: Slower mouse response with version 1.0RC4

From: spl@ncmir.ucsd.edu
Date: Tue Sep 17 2002 - 19:42:52 EDT

  • Next message: David Scriven: "Re: XForms: Slower mouse response with version 1.0RC4"

    # To subscribers of the xforms list from spl@ncmir.ucsd.edu :

    > The image is displayed on an GLCanvas using
    > OpenGL commands such as glDrawPixels
    > Events are trapped using fl_add_canvas_handler
    >
    > I get the impression (no hard data) that there
    > are fewer events being trapped.

    Ah. This is a different kettle of fish.

    The PointerMotionHintMask is set by default for all XForms windows and
    is inherited by the child Canvas window. As far as I know, this has
    been this way for a very long time -- way back to 0.82 but I don't
    really have an easy way of checking. I certainly didn't add it.

    You can remove this flag from your GLCanvas with

            fl_remove_selected_xevent( FL_ObjWin( your_gl_canvas ),
                                       PointerMotionHintMask );

    This call is in several of my applications and some of them are five
    or six years old, so I don't think it's especially new. Why your app
    performs differently with 0.89 vs 1.0RC4 is not clear to me.

    Anyhow, give this a try and see if things work better.

                                                            spl
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Tue Sep 17 2002 - 19:43:26 EDT