View Single Post
  #13  
Old 09-14-2018, 05:04 AM
peterparker peterparker is offline
Member
 
Join Date: Aug 2018
Posts: 12
Thanks, viz.tick would suffice for this purpose.

If I was under time pressure I could have just coded this from scratch: change the light intensity by 1% and wait for 10 ms. Rinse, repeat. I would just ignore the fact that these slight changes do not coincide with frame buffer swaps. Like this I wouldn't have had to know the framerate.

Ideally, I would wait for 'lastTimeStamp + 10 ms' in order to be precise, which would basically be possible with the viz.tick command. But only using the 'viz.director', of course.

Sometimes it is faster to code yourself than to find out whether designated methods exist and how they work.
Reply With Quote