display mode change, getting framerate
Dear All,
I want to force a display mode change and exit out when errors occur, however I am having some trouble with querying the framerate the program runs at (viz.window.getFrameRate() always returns 0). Is the below a good way to do it? Code:
# setup display mode Thank you very much! Best, Dee |
Quote:
Best, Dee |
The following code shows how to retrieve the refresh rate of the monitor:
Code:
refresh_rate = viz.getOption('viz.monitor.refresh_rate',type=int) |
Ah thanks, that works!
I did try viz.getOption('viz.display.frequency',type=int) before, but that doesn't work as it simply reports the frequency you asked for (however ridiculous), not the current refresh rate... viz.getOption('viz.monitor.refresh_rate',type=int) does exactly what I hoped for. |
All times are GMT -7. The time now is 04:50 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC