From: Brian P. <bri...@tu...> - 2006-09-14 17:01:51
|
Daniel E. Shipton wrote: > Any advice from this list? Since I am digging deep into the chromium > code this list may be more appropriate. > > On 9/11/06, *Daniel E. Shipton* < dan...@gm... > <mailto:dan...@gm...>> wrote: > > I have a custom crServer that is embedded into a frame loop. Every > frame the server checks for client data which is drawn along with my > custom drawing updates... This results in choppy frames because the > frames aren't synchronized that are coming over the wire on a > glFlush/SwapBuffers/etc(spu that no-ops them). I am trying to find > a way to find out when a client(in our case there will always just > be one) is done with the current frame(buffer swapping for my app is > done for me so its out of my control). I see where I can check to > see if the server is in between Begin/End calls..but not between > frames. OpenGL doesn't have any explicit begin/end-frame commands. The closest approximation is glClear and SwapBuffers/glFlush. If your app calls [glX/wgl]SwapBuffers() you can intercept that in Chromium and do end-of-frame processing. -Brian |