WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 11-04-2015, 02:09 AM
hzhao hzhao is offline
Join Date: Sep 2012
Posts: 18
how to record data at fixed rate with viz.starttimer


I use viz.starttimer(0,1/30,viz.FOREVER) to run my object animation and record the motion data in function myAnimation. But the data is not recorded at 30Hz. instead it is recorded at about 40Hz and fluctuates.



I use Oculus DK2. If my virtual scene is complex and the computing burden is high, the data recording rate drops. So I set it at 1/30, and want to have a fixed recording rate. But it doesn't work.

Reply With Quote
Old 11-04-2015, 06:55 AM
mape2k mape2k is offline
Join Date: Mar 2013
Posts: 60
The script updates every frame: if the framerate drops below 30fps, the recording rate will also suffer.

You can decouple this by using the viz.director to start the data recording in a whole new thread, but it will be time asynchronous from the main thread so be careful.

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Vsync prevents using fresh motion capture data in physics simulations? performlabrit Vizard 2 11-05-2013 10:48 AM
Physics engine update rate and display rate zharuViz Vizard 12 10-28-2013 06:52 AM
Frame rate issue kopper Vizard 2 06-09-2013 10:53 AM
Use saved text file data as replay sources problem mizutani_jun Vizard 4 10-14-2010 04:49 PM
record and playback head-tracked data michaelrepucci Vizard 3 11-25-2008 04:20 PM

All times are GMT -7. The time now is 11:56 AM.

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