WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 09-15-2008, 10:10 AM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
I do have a second device (an standard analog monitor) connected to the video card, which has two independent DVI-I ports. After much exploration, it seems, however, that the video card bandwidth is narrower than I had expected. So turning down the resolution on the projector helped solved the problem, as did putting both devices at the same refresh rate (there must be some savings at the GPU).

So now viz.go(viz.QUAD_BUFFER) runs fine at 120 Hz. But I started to do some frame time logging with the following code:
Code:
import viz
import viztask

def onFrameUpdate(event):
	global frameTime
	global frameInterval
	frameTime += [event.time]
	frameInterval += [event.elapsed]

def collectFrames():
	print 'Collecting frame times ...'
	viz.callback(viz.UPDATE_EVENT,onFrameUpdate)
	yield viztask.waitTime(60)
	print 'Finished collection.'
	viz.callback(viz.UPDATE_EVENT,None)
	yield writeFile()

def writeFile():
	file = open('frametime.txt','wt')
	file.write('frameTime = (')
	for i in frameTime:
		file.write(str(i)+',')
	file.write(')\n')

	file.write('frameInterval = (')
	for i in frameInterval:
		file.write(str(i)+',')
	file.write(')\n')
	
	yield file.flush()
	file.close()
	viz.quit()

frameTime =[]
frameInterval = []

viz.go(viz.QUAD_BUFFER)
viztask.schedule(collectFrames())
and I found that the time stamps were not very precise. I had expected them to be nearly rock-solid, since the frames should be locked to the refresh rate. It this, possibly, due to Windows processes interrupting the Vizard execution, or can I not expect Vizard to run completely real-time?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linking problems with Live Character Frank Verberne Vizard 5 06-04-2008 11:42 AM
frame rate lock? kgarr Vizard 1 02-23-2006 12:34 PM
quad buffered stereo? halley Vizard 2 10-19-2005 12:28 PM


All times are GMT -7. The time now is 04:34 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC