View Single Post
  #2  
Old 11-24-2004, 04:44 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Does the lag occur every time an avatar performs an action? Does the lag last as long as the action? Can you try running the following script and seeing if it reproduces the lag. The script loads 7 avatars and pressing the spacebar will execute an animation on one of them. I've tried it here and I don't notice a lag.
Code:
import viz
viz.go()

NUM_AGENTS = 7

for x in range(NUM_AGENTS):
	agent = viz.add('male.cfg')
	agent.translate((NUM_AGENTS/-2.0) + x*1.5,0,15)
	agent.rotate(180,0,0)
	agent.state(1)
	
def onkeydown(key):
	if key == ' ':
		agent.execute(5)

viz.callback(viz.KEYDOWN_EVENT,onkeydown)
Reply With Quote