View Single Post
  #4  
Old 06-04-2008, 11:06 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Add the following code to the end of your script:
Code:
lc1.lastUpdateTime = 0.0
def CheckUpdateTime():
	t = lc1.getLastUpdateTime()
	if t == lc1.lastUpdateTime:
		print 'Did not receive new update from server on frame',viz.getFrameNumber()
	else:
		lc1.lastUpdateTime = t
vizact.ontimer(0,CheckUpdateTime)
It will print out a message if the character did not receive an update from the server during that frame. If you are getting a lot of these message, then packets are being dropped.

Also, make sure that MotionBuilder is able to sustain the requested stream rate. When you go to the LiveCharacters device screen it will display the actual stream rate underneath the Online checkbox.

Also, what hardware is MotionBuilder connecting to? In reality, there is no point in setting the stream rate higher than the rate of the hardware device. If the hardware is generating new data at under 60Hz, then setting the LiveCharacters stream rate higher is not going to make any improvements at all. You will just end up sending the same data multiple times. So make sure your input device is generating new data at 60Hz.
Reply With Quote