GSoC: VR Support through OpenXR - TODO's #67083

Closed
opened 2019-07-16 21:36:13 +02:00 by Julian Eisel · 7 comments
Member

VR Support through OpenXR - TODO's

This task is to list open ToDo's for the Core Support of Virtual Reality Headsets through OpenXR GSoC project. Most of the items here should be tackled as part of the GSoC coding period.
New features to be added are not listed here.

Rendering

    • Dark VR session rendering on Windows Mixed Reality runtime (5350015d51)
    • Lighting changes with head movements (091cc94379)
    • Head position seems to move upon rolling view (fc31be5ab0)
    • OpenGL support is not done (3a4034a741)
    • OpenGL swap calls cause issues with frame syncing, throtteling drawing in some cases (62bbd2e37d).
    • Use a separate thread VR rendering. OpenXR blocks threads for frame rate synchronization, which probably makes other rendering lag a bit. This way we can also keep a single OpenGL context alive on this thread, which avoids expensive context switches. -- *In progress, see temp-vr-draw-thread branch.//
    • Remove limit of one shared DirectX/OpenGL resource per DirectX context. Will also fix constant re-registration of the shared resource and improve performance. (fec7ac7c51)

General Stability

    • Memory leak (55362436d9)
    • Monado OpenXR runtime crashes at swapchain creation -- (Appears to be a limitation of NVidia optimus on Linux. Monado team is checking.)

Build System

    • Automatically set environment variables required to find API-layers -- The OpenXR SDK repository we currently (and preferably) use doesn't include the API-layers. For now users will have to setup the layers themelves if they want to use them (it's a debug feature only).
    • More generic CMake variables (e.g. autodetect OpenXR version) -- Not needed after recent refactor of OpenXR related build system parts.
    • Pre-master-merge: Remove bundled OpenXR sources support (0dd3f3925b)

Miscellaneous

    • Remove support for non-OpenGL windows? Useful for testing, but unused by now (873223f38d).
# VR Support through OpenXR - TODO's This task is to list open ToDo's for the *Core Support of Virtual Reality Headsets through OpenXR* GSoC project. Most of the items here should be tackled as part of the GSoC coding period. New features to be added are __not__ listed here. ## Rendering * - [x] Dark VR session rendering on Windows Mixed Reality runtime (5350015d51) * - [x] Lighting changes with head movements (091cc94379) * - [x] Head position seems to move upon rolling view (fc31be5ab0) * - [x] OpenGL support is not done (3a4034a741) * - [x] OpenGL swap calls cause issues with frame syncing, throtteling drawing in some cases (62bbd2e37d). * - [ ] Use a separate thread VR rendering. OpenXR blocks threads for frame rate synchronization, which probably makes other rendering lag a bit. This way we can also keep a single OpenGL context alive on this thread, which avoids expensive context switches. -- *In progress, see [temp-vr-draw-thread ](https:*developer.blender.org/diffusion/B/history/temp-vr-draw-thread/) branch.// * - [x] Remove limit of one shared DirectX/OpenGL resource per DirectX context. Will also fix constant re-registration of the shared resource and improve performance. (fec7ac7c51) ## General Stability * - [x] Memory leak (55362436d9) * - [ ] ~~Monado OpenXR runtime crashes at swapchain creation~~ -- *(Appears to be a limitation of NVidia optimus on Linux. Monado team is checking.)* ## Build System * - [ ] ~~Automatically set environment variables required to find API-layers~~ -- *The OpenXR SDK repository we currently (and preferably) use doesn't include the API-layers. For now users will have to setup the layers themelves if they want to use them (it's a debug feature only).* * - [ ] ~~More generic CMake variables (e.g. autodetect OpenXR version)~~ -- *Not needed after recent refactor of OpenXR related build system parts.* * - [x] Pre-master-merge: Remove bundled OpenXR sources support (0dd3f3925b) ## Miscellaneous * - [x] Remove support for non-OpenGL windows? Useful for testing, but unused by now (873223f38d).
Julian Eisel self-assigned this 2019-07-16 21:36:14 +02:00
Author
Member

Added subscribers: @JulianEisel, @dfelinto, @sebastian_k

Added subscribers: @JulianEisel, @dfelinto, @sebastian_k
Author
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Julian Eisel changed title from = VR Support through OpenXR - TODO's to VR Support through OpenXR - TODO's 2019-07-16 21:52:22 +02:00
Member

OpenGL swap call seems to hurt perfomance quite a bit? (@LazyDodo (LazyDodo) reports, didn't check myself)

The actual drawing hurts the performance the most, however, when in DX11 mode, calling swapbuffers on the OGL offscreen buffer for some reason vsyncs to the regular display (60hz) followed by a swap buffer on the DX Surface which vsyncs to 90hz on the rift.

So when in DX mode (and only in DX mode) we can as far as I can see skip the swap on the ogl back buffer and side step a 60hz vsync there.

This lifted my framerate when drawing nothing from 45 to 90 fps. (but since it wasn't drawing anything, i couldn't check for any visual issues)

However as soon as actual drawing is involved frame rate falls to 15ish fps regardless, even with just a simple cube in the scene.

> OpenGL swap call seems to hurt perfomance quite a bit? (@LazyDodo (LazyDodo) reports, didn't check myself) The actual drawing hurts the performance the most, however, when in DX11 mode, calling swapbuffers on the OGL offscreen buffer for some reason vsyncs to the regular display (60hz) followed by a swap buffer on the DX Surface which vsyncs to 90hz on the rift. So when in DX mode (and only in DX mode) we can as far as I can see skip the swap on the ogl back buffer and side step a 60hz vsync there. This lifted my framerate when drawing nothing from 45 to 90 fps. (but since it wasn't drawing anything, i couldn't check for any visual issues) However as soon as actual drawing is involved frame rate falls to 15ish fps regardless, even with just a simple cube in the scene.

Added subscriber: @snakeblade

Added subscriber: @snakeblade
Julian Eisel changed title from VR Support through OpenXR - TODO's to GSoC: VR Support through OpenXR - TODO's 2019-08-22 00:22:56 +02:00
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Author
Member

Most of the points here were addressed. The separate drawing thread idea isn't implemented yet, but that's a project that can be done as a part of regular VR development.

Most of the points here were addressed. The separate drawing thread idea isn't implemented yet, but that's a project that can be done as a part of regular VR development.

Added subscriber: @satishgoda1

Added subscriber: @satishgoda1
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#67083
No description provided.