From: Hedayat V. <hed...@ai...> - 2008-03-09 19:17:53
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html style="direction: ltr;"> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body style="direction: ltr;" bgcolor="#ffffff" text="#000000"> <span><br> <style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;} blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important} blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important} blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important} blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>"Yuan Xu" <a class="moz-txt-link-rfc2396E" href="mailto:xuy...@gm..."><xuy...@gm...></a></b></i> wrote on 03/09/2008 12:19:22 PM:</span><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">Hi Hedayat and all, </pre> </blockquote> Hi!<br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap=""> The rcssserver3d-0.5.6 can run multi-threads in my computer, it does not need to call opengl in the main thread. but the cvs head code can't. It is very strange, so I decide to look into this problem. Because there are too many differences between cvs head and 0.5.6, I copy the barrier implementation to the rcssserver3d-0.5.6, then it works! while calling opengl in a new thread. I attached the testing server to this mail, could you test it in your system? </pre> </blockquote> OK, I'll test it ASAP. Interesting!<br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap=""> There is another issue should be in mind is that the multi-threads increase the sense act latency, it makes agent behavior unlike in the singled-thread. I think this will make teams in trouble while changing from singled-thread to multi-threads. What do you think about it? </pre> </blockquote> Sorry, would you please explain more about the reason of this increased latency? In both single threaded and multi-threaded modes StartCycle() is called immediately after EndCycle(). What increases the latency?<br> <br> And another question: it seems that it is enough to call SceneServer::Pre/PostPhysicsUpdate() functions once in a cycle. So, we can apply the same change in Step() for single threaded mode (to call PhysicsUpdate() function inside it's while loop instead of Update() function and calling Pre/PostPhysicsUpdate() functions (and GameControlServer::Update()) outside the while loop); right? It should benefit performance a little.<br> <br> Thanks a lot,<br> Hedayat<br> <br> </body> </html> |