Re: Custom crServer sync question

"Daniel E. Shipton" <[email protected]> Wed, 13 Sep 2006 13:19:46 -0500
Newsgroups gmane.comp.graphics.chromium.devel
Message-ID <[email protected]>
--===============0613103974==
Content-Type: multipart/alternative; 
	boundary="----=_Part_86776_9893921.1158171586122"

------=_Part_86776_9893921.1158171586122
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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]> 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.
>
> Within my draw function I have:
>
> // Bunch of custom drawing above...
>    glPushMatrix();
>          bool ran_queue = false;
>          while(!ran_queue)
>          {
>             if(cr_server.run_queue != NULL)
>             {
>            crServerServiceClients();
>                ran_queue = true;
>             }
>          }
>    glPopMatrix();
>
>
> Ideas?
>
> -Dan
>

------=_Part_86776_9893921.1158171586122
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Any advice from this list? Since I am digging deep into the chromium code this list may be more appropriate.<br><br><div><span class="gmail_quote">On 9/11/06, <b class="gmail_sendername">Daniel E. Shipton</b> &lt;<a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
[email protected]</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>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...&nbsp; 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).&nbsp; 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).&nbsp; I see where I can check to see if the server is in between Begin/End calls..but not between frames.
<br><br>Within my draw function I have:<br><br>// Bunch of custom drawing above...<br>&nbsp;&nbsp; glPushMatrix();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool ran_queue = false;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(!ran_queue)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(cr_server.run_queue != NULL)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; crServerServiceClients();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ran_queue = true;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; glPopMatrix();<br><br><br>Ideas?<br><br>-Dan<br>

</div></blockquote></div>


------=_Part_86776_9893921.1158171586122--


--===============0613103974==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
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
--===============0613103974==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Chromium-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chromium-dev

--===============0613103974==--