PDA

View Full Version : Execute function at high sampling rate


zumbay
03-06-2017, 06:20 AM
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, 11: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.