WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Execute function at high sampling rate (https://forum.worldviz.com/showthread.php?t=5968)

zumbay 03-06-2017 05:20 AM

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!

Jeff 03-06-2017 10:43 PM

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.


All times are GMT -7. The time now is 08:11 PM.

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