Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2019-07-23 03:06:08 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-07-23 03:06:08 +0300
commitd58eb8d29dcdde46511384c317a73112bfea5aac (patch)
tree9188b847fa5ffd18a95b254e5615138a3eeb352e /source/blender/windowmanager/intern/wm_xr.c
parenta4310ba85f658406e8b6c3371ff3c75aea702a7f (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.c3
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);
}