Re: Custom crServer sync question

Brian Paul <[email protected]> Thu, 14 Sep 2006 11:01:47 -0600
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
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* < [email protected] 
> <mailto:[email protected]>> 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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642