SwapBuffers()

  • Follow


Hello,

I have an application that runs OpenGL in a custom splitter window. I had 
eliminated all window flicker,
when I decided to run my OpenGL render in a seperate thread for each of the 
render viewports.

Upon window splitter resizing, I am now getting window flicker. Also, some 
strange OpenGL resizing in the viewports. I am passing the size values of 
the window into the OpenGL thread, as to make sure the gluPerspective is 
updated. I was wondering if anyone might know? why my "flicker free" window, 
without using threads, now has "flicker" upon using threads for my "render 
window"?

If I don't set dwFlags "PDF_DOUBLEBUFFER", then the flicker stops. But 
obviously this is needed? So my guess is it has something to do with 
SwapBuffers()?

Thanks! 


0
Reply winapi 3/16/2010 4:58:17 PM

winapi a �crit :
> Hello,
> 
> I have an application that runs OpenGL in a custom splitter window. I had 
> eliminated all window flicker,
> when I decided to run my OpenGL render in a seperate thread for each of the 
> render viewports.
> 
> Upon window splitter resizing, I am now getting window flicker. Also, some 
> strange OpenGL resizing in the viewports. I am passing the size values of 
> the window into the OpenGL thread, as to make sure the gluPerspective is 
> updated. I was wondering if anyone might know? why my "flicker free" window, 
> without using threads, now has "flicker" upon using threads for my "render 
> window"?
> 
> If I don't set dwFlags "PDF_DOUBLEBUFFER", then the flicker stops. But 
> obviously this is needed? So my guess is it has something to do with 
> SwapBuffers()?
> 
> Thanks! 
> 
> 

Hello
try it on comp.graphics.api.opengl.
Cathy L.
0
Reply Cathy 3/16/2010 10:15:15 PM


1 Replies
365 Views

(page loaded in 0.02 seconds)

Similiar Articles:













7/23/2012 8:56:33 AM


Reply: