WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-06-2017, 05:20 AM
zumbay zumbay is offline
Member
 
Join Date: Oct 2016
Posts: 15
Execute function at high sampling rate

Hi,

I have an input device which can sample at a higher rate then the refresh rate of my monitor. What is the best way to save the data from that device?

Will calling a function which saves the data (e.g. using sensor.getData()) with vizact.ontimer(0.004, savedata) yield an accurate result? And how will it behave when the scene is rendered?

Thanks!
Reply With Quote
  #2  
Old 03-06-2017, 10:43 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,453
Vizard's main loop runs in sync with the display's refresh rate. So you won't be able to save out data at a higher rate.

You could try disabling vsync to get faster rates but then you may have tearing.

Last edited by Jeff; 03-06-2017 at 10:45 PM.
Reply With Quote
Reply

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
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


All times are GMT -7. The time now is 10:53 AM.


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