in reply to PDL double-buffering

Hi Brad,

I have done some work with PDL::Graphics::TriD and the only time I have noticed flicker is when my X server was configured to use software OpenGL rendering instead of the videocard's hardware rendering. If you are visualizing a large dataset or updating it with some intensive computation I might expect some lag when loading the new model, but not flicker. For example, I can throw 1,000,000 points into a model and stretch the window to 1600x1200 and rotate the plot all over the place without flicker. Doing the same thing while moving the points around generates a lot of lag between iterations, but no visible flicker.

If the hardware rendering isn't the problem, could you provide some more information about the type of visualization you are doing (large dataset, frequent updates, etc.)?

Replies are listed 'Best First'.
Re^2: PDL double-buffering
by bsb (Priest) on Feb 22, 2007 at 23:36 UTC
    Thanks for the suggestions

    Hardware gl seems to be fine, glxgears runs smoothly:
    $ glxinfo | grep -i direct direct rendering: Yes
    I'll follow up with more details soon, but I doubt volume of the data is the problem, it's quite modest by PDL standards, and when I'm using the "twiddle" mode to look-around an unchanging model there is no flicker. Previously I just had a mesh which seemed ok but when I used a filled sheet there is a noticeable flicker as the light sheet is draw over the dark background.

    I might not need double-buffering exactly, but a GL equivalent that only draws once all the things to draw are queued.