Results 1 to 2 of 2

Thread: PBuffer flickering

  1. #1
    Newbie Newbie
    Join Date
    Feb 2016

    PBuffer flickering


    i'm using a Raspberry PI and OpenGLES 2.

    I'm using a PBuffer in a thread, rendering some content in parallel. This is what i'm doing:

    1. Create context and surface for window
    2. Create in other thread context and pbuffer

    Main process main loop: Activate context of window, drawing my content to the window from step 1, when using the PBuffer as texture bind it with eglBindTexImage and unbind after usage. Deactivate context of window
    In thread loop: Activate Context from step 2, draw stuff, call glFLush and glFinish and deactivate context.

    The content of the PBuffer is flickering, it's like i can watch step by step how the content of the Pbuffer is draw. The main loop stuff is rendering at 55FPS, the content of the PBuffer at 10-15FPS.

    I'm doing something wrong?

    Thank you in advance.
    Regards Mario

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2008
    You're likely rendering to the texture while it's being sampled. There's lots of potential solutions, the simplest would be moving everything to a single thread or adding a mutex between the threads, to something more complicated and efficient like keeping the threads, using an EGL shared context with multiple EGL Images and EGL fences to synchronize content.


Similar Threads

  1. some help regarding flickering
    By ankur bansal in forum OpenGL: Basic Coding
    Replies: 46
    Last Post: 01-23-2011, 06:33 PM
  2. flickering
    By stranimondi in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-17-2006, 11:41 PM
  3. Use a pbuffer as texture while rendering in another pbuffer
    By EpSiLoN in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-11-2003, 04:48 PM
  4. Help Me I need help with flickering
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-29-2002, 01:21 AM
  5. Flickering
    By cwhite40 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-23-2000, 10:49 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