Results 1 to 4 of 4

Thread: Faster expose events!!

  1. #1
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Faster expose events!!

    Right now, when I get an expose event, I just redraw my whole scene. Unfortunately, this is often a VERY expensive operation. I would like to somehow magically speed this up - I experimented a while ago with copying just the rectangle that was exposed from the back buffer to the front (after drawing the back buffer, of course), but it was slow as molasses (which is why I redraw the whole scene - it's faster). Is there some way that I can copy the contents (whole or in part) of a buffer into another one quickly? Or does anyone have any other suggestions?

    Chris

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: Faster expose events!!

    What you're looking for is the WGL_ARB_buffer-region extension (previously KTX_buffer_region). It's widely supported on most hardware I've seen. Check out the spec here: http://oss.sgi.com/projects/ogl-samp...fer_region.txt

  3. #3
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Re: Faster expose events!!

    Can't be windows specific... I need it to work on Linux/Irix ...any other ideas?

    Chris

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Sep 2000
    Location
    SWEDEN
    Posts
    601

    Re: Faster expose events!!

    I browsed the extension registry a bit and came up with the following alternatives under linux:
    MESA_copy_sub_buffer is designed to do exactly what you want to. I don't know how fast it is though, or whether it's supported by IHV's under linux. The other alternative is pbuffers which are supported under windows. I don't know what the situation is with linux, but there's an equivalent to wgl pbuffers called GLX_SGIX_pbuffers. You can check out the spec to the extensions her: http://oss.sgi.com/projects/ogl-samp...sub_buffer.txt
    http://oss.sgi.com/projects/ogl-samp...IX/pbuffer.txt

    [This message has been edited by harsman (edited 06-19-2001).]

Similar Threads

  1. Expose GS layer/viewport provoking convention in GLSL
    By Alfonse Reinheart in forum OpenGL: General
    Replies: 0
    Last Post: 01-31-2013, 02:20 AM
  2. X11 events and GL rendering
    By _arts_ in forum OpenGL: Linux
    Replies: 2
    Last Post: 11-24-2010, 03:13 AM
  3. Regarding X-events, OpenGL, glX:
    By kobebryant in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-27-2006, 05:49 PM
  4. ATi: fragment programs expose wrong light position?
    By tellaman in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 02-24-2005, 07:50 AM
  5. Replies: 4
    Last Post: 07-31-2002, 01:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean