diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-07-23 03:06:08 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-07-23 03:06:08 +0300 |
commit | d58eb8d29dcdde46511384c317a73112bfea5aac (patch) | |
tree | 9188b847fa5ffd18a95b254e5615138a3eeb352e /source/blender/windowmanager/intern/wm_xr.c | |
parent | a4310ba85f658406e8b6c3371ff3c75aea702a7f (diff) |
Add --debug-xr-time command line option for VR frame time info prints
Outputs frame render time in milliseconds and FPS this time would add up
to. We could average times so FPS is a bit more stable, but the
precision of un-averaged results may be helpful too.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_xr.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_xr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c index cba3ec3bbdf..db4d306217e 100644 --- a/source/blender/windowmanager/intern/wm_xr.c +++ b/source/blender/windowmanager/intern/wm_xr.c @@ -117,6 +117,9 @@ bool wm_xr_context_ensure(bContext *C, wmWindowManager *wm) if (G.debug & G_DEBUG_XR) { create_info.context_flag |= GHOST_kXrContextDebug; } + if (G.debug & G_DEBUG_XR_TIME) { + create_info.context_flag |= GHOST_kXrContextDebugTime; + } wm->xr_context = GHOST_XrContextCreate(&create_info); } |