Accelerating Your VR Games with VRWorks -...

58
Manuel Kraemer Accelerating Your VR Games with VRWorks

Transcript of Accelerating Your VR Games with VRWorks -...

Page 1: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

Manuel Kraemer

Accelerating Your VR Games with VRWorks

Page 2: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

2

Talk Overview

▪ NVIDIA Pascal Overview

▪ VRWorks Graphics Features

o Multi-Res Shading, Lens Matched Shading

o Single Pass Stereo, VRSLI

▪ SMP Assist (new)

▪ Vulkan extensions (new)

▪ VR Tools – Nsight, FCAT VR

Page 3: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

3

NVIDIA In VR

Page 4: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

4NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

SDKs & Tools ApplicationsHardware

NVIDIA VRPowerful Hardware & Tools to Enhance Your VR Experiences

VRWorks

PhysX

NSIGHT & FCAT VR

Page 5: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

55

NVIDIA Pascal GPU Architecture

16NM FF G5X SIMULTANEOUS MULTI-PROJECTION

& PRE-EMPTION

CRAFTSMANSHIP

10 GHz

Page 6: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

6

NVIDIA PASCAL▪ Pixel Level Preemption Improves Responsiveness For VR

TRIANGLESCOMMANDPUSHBUFFER

PIXELS

PREEMPT

Page 7: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

7

NVIDIA PASCAL▪ Simultaneous Multi-Projection Engine

Input Assembler

Vertex Shader

Tesselation Shader

Geometry Shader

Pixel Shader

Setup Raster

Simultaneous

Multi-Projection

Page 8: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

8

VR GRAPHICS CHALLENGES

Page 9: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

9

VR Demands Serious Performance

Frame Rate Resolution Latency

90FPS / 11 ms 800M Pixels/Sec <20ms

4032

2240

Page 10: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

10

3D Game System

GameSimulation

HDMI, Sync

MonitorRendererAssets

Raster

GeometryTexturesLights

Shaders

ShadowMaps

AOShade Post FX*

* Includes depth of field, reflections, fog, color grading, motion blur, antialiasing

User Input

Input Devices

Page 11: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

11

VR Game System

GameSimulation

HDMI, Sync

HMDRendererAssets

Rasterization

GeometryTexturesLights

Shaders

ShadowMaps

User Input

Input Devices

Time Warp

PostLensDist

Page 12: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

1212

VR LATENCY WITHOUT TIMEWARP

CPU

GPU

Flip

Flash backlight

Scan-out

Sample head pose

Submit to GPU

Latency

Page 13: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

1313

Timewarp

based on latest

head pose

CPU

GPU

Latency

Scan-out

Flip

Flash backlight

Sample head pose

VR LATENCY WITH TIMEWARP

Submit to GPU

Page 14: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

1414

RenderedFrames

ScanOut

RuntimeTime Warp

Frame 1 Frame 2 Frame 3

Warp

1

Warp

2

Warp

3

Warp

4

Frame 1 + Warp 1

11ms 11ms 11ms 11ms 11ms

Frame 1 + Warp 2 Frame 2 + Warp 3 Frame 3 + Warp 4

DROPPED FRAME

Page 15: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

15

User’s viewImage Displayed Optics

Lens Distortion

Page 16: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

16

VRWorks

Page 17: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

17

GRAPHICS HEADSET AUDIOTOUCH & PHYSICS

PROFESSIONAL VIDEO

Bringing Reality to VR

NVIDIA VRWORKS

Page 18: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

18

GRAPHICS HEADSET AUDIOTOUCH & PHYSICS

PROFESSIONAL VIDEO

Bringing Reality to VR

NVIDIA VRWORKS

Page 19: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

19

Multi-Resolution Shading (MRS) Single Pass Stereo (SPS)

RENDER LESS PIXELS

Lens Matched Shading (LMS)

HANDLE LARGER SCENES

VRSLI

VRWORKS GRAPHICS

Page 20: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

20

Render Less Pixels

Page 21: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

21

LCD display Optics User’s view

VR OPTICS

Page 22: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

2222

Warped ImageRendered Image

VR RENDERING

Page 23: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

2323

VR RENDERINGGPU renders many pixels that never make it to screen

Warped ImageRendered Image

Page 24: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

24

VRWORKS MULTI-RES SHADING

Page 25: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

25

Multi-resolution shadingFast viewport broadcast on NVIDIA Maxwell and beyond GPUs

Viewport 1

Viewport 2

Viewport N

...

Geometry Pipeline

Page 26: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

2626

VRWORKS LENS MATCHED SHADINGRenders to a lens corrected surface

Page 27: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

2727

LENS MATCHED SHADINGRenders to a lens corrected surface

Page 28: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

28

LENS MATCHED SHADINGBreakdown

Page 29: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

29

LENS MATCHED SHADINGBreakdown

Page 30: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

30

LENS MATCHED SHADINGBreakdown

Page 31: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

31

LENS MATCHED SHADINGBreakdown

Page 32: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

32

LENS MATCHED SHADINGBreakdown

Page 33: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

33

Baseline

(no warp)

2.54 MPix / eye MRS

LM

S

Conservative

(no worse than baseline)Aggressive

(3/4 Reso. of conservative)

1.57 MPix / eye 1.17 MPix / eye 0.87 MPix / eye

2.03 MPix / eye 1.58 MPix / eye 1.40 MPix / eye

Quality

(no undersampling)LMS vs. MRS

Page 34: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

35

LMS / MRS Challenges

▪ Require unwarping

o Minor speed and quality degradation

▪ Require application changes for

o Setting / creating new “fast” geometry shaders

o Set viewport / scissor state

o Modifying shaders

o Introducing SMP Assist to help with some of this

Page 35: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

36

Unwarping

▪ Oculus PC SDK 1.19 introduces native

LMS support in the compositor!

▪ Avoids having to do it in-engine

▪ Improves quality and performance

Page 36: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

37

Introducing SMP Assist

▪ Application

o Creates ID3DNvSMPAssist interface

o Sets up projections

o Calls Enable/Disable around render passes/draw calls

o Use GetConstants results in shaders

▪ Driver

o Creates & binds Fast Geometry Shaders for culling &

projecting

o Sets scissor and viewport rectangles

o Returns constant buffer data needed

Helping with app complexityInterface ID3DNvSMPAssist{void Enable(IUnknown *pDevContext, EyeIndex)

void Disable(IUnknown *pDevContext);

void GetConstants(...);

void SetupProjections(IUnknown *pDevice,);

void UpdateInstancedStereoData(IUnknown*pDevice,...);};

Page 37: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

38

SMP Assist levels of support

▪ NV_SMP_ASSIST_LEVEL_FULL

o App selects a pre-baked MRS/LMS config (HMD type, quality level).

o Driver handles correct setting of viewport, scissors and FastGS.

o Driver provides constant buffer data for remapping.

▪ NV_SMP_ASSIST_LEVEL_PARTIAL

o App provides a custom MRS/LMS config.

o Driver handles correct setting of viewport, scissors and FastGS.

o Driver provides constant buffer data for remapping.

▪ NV_SMP_ASSIST_LEVEL_MINIMAL

o App provides viewports and scissors.

o App sets FastGS as required.

o App sets LMS params as required (NvAPI_D3D_SetModifiedWMode).

o Driver handles correct setting of viewports and scissors.

o Driver provides constant buffer for remapping.

Page 38: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

39

Shader Modification Example

The input SVPos is in LMS space.

So convert it to linear space, since CameraVector is used to

calculate lighting with GBuffer data, which is also in linear space.

InUV is LMS space.

When fetching data from GBuffers, use LMS space coordinates

directly : GBuffer is indexed in LMS space.

Page 39: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

40

Handle Larger Scenes

Page 40: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

4141

TRADITIONAL STEREO RENDERINGRequires 2 geometry passes

Page 41: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

42

NVIDIA PASCAL▪ Simultaneous Multi-Projection Engine

Input Assembler

Vertex Shader

Tesselation Shader

Geometry Shader

Pixel Shader

Setup Raster

Simultaneous

Multi-Projection

Page 42: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

4343

VRWORKS SINGLE PASS STEREORenders left & right eye in one geometry pass

Left Eye

Right Eye

Page 43: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

44

VRWORKS VR SLI▪ Scales performance across multiple GPUs

Frame 1(Left eye)

WarpedFrame

Left eye rendering

Right eye rendering

Shadow maps,

GPU physics,

etc.

Page 44: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

45

“Normal” SLI

N

N+1

N N+1

N N+1

CPU

GPU 0

GPU 1

Display

Latency

GPUs render alternate frames

Page 45: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

46

VR SLI

NL

N+1R

N N+1

NR

N+1L

N N+1CPU

GPU 0

GPU 1

Display

Latency

Each GPU renders one eye—lower latency

Page 46: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

47

VRWORKS SPEEDUPS

0.0

0.4

0.8

1.2

1.6

2.0

Funhouse Everest Raw Data SportsBar VR Trials of Tatooine

Without VRWorks With VRWorks

*Performance measured on GeForce GTX 1080 using VRWorks MRS, LMS, or VR SLI

Rela

tive P

erf

orm

ance

Page 47: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

48

Eco-system

Page 48: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

49

VRWorks Graphics Support▪ Engines

o UnrealEngine 4

o Unity

▪ APIs

o Direct3D (11 and 12)

o OpenGL

o Vulkan

Page 49: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

50

VRWorks for Unreal Engine

▪ Full VRWorks suite available

▪ VRSLI, Multi-resolution Shading, Single Pass Stereo, Lens Matched Shading

o https://github.com/NvPhysX/UnrealEngine/tree/VRWorks-Graphics-4.18

o Most post passes, instanced stereo supported

▪ 4.19 coming soon

Unreal Engine integration

Page 50: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

51

VRWorks for Unity

▪ Implemented as a native Unity plugin

▪ Supports MRS, SPS, LMS, and VRSLI

▪ DX11 only, supports basic post processing, forward rendering

▪ developer.nvidia.com/nvidia-vrworks-and-unity

Available in Unity 2017.1 and higher

Page 51: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

52

Vulkan extensions / VRWorks building blocks

▪ Multi-Resolution Shading (Maxwell+)

o VK_NV_viewport_array2

o VK_NV_geometry_shader_passthrough

▪ Lens Matched Shading (Pascal+)

o VK_NV_clip_space_w_scaling

▪ Single Pass Stereo (Pascal+)

o VK_NVX_multiview_per_view_attributes

Page 52: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

53

Vulkan Multi-GPU for VR▪ Vulkan 1.1 / VK_KHR_device_group_{creation}

o Explicit MGPU for AFR, SFR, VR

o Command buffers & commands can be directed to subsets of devices

o Viewport/scissor state can diverge between devices

o Shader built-in gl_DeviceIndex

o Select per eye view transform

▪ See vr_sli_vk sample in VRWorks SDK

▪ See Jeff Bolz` MGPU talk:

▪ https://youtu.be/RkXa4RiERu8?t=1566

Page 53: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

54

Measuring Performance

Page 54: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

55

• Understand CPU/GPU interaction

• Debug your frame as it is rendered

• Profile your frame to understand

bottlenecks

• Save your frame for targeted

analysis

• Leverage the Microsoft Visual

Studio platform

• Also available in the newly

released tool, Nsight Graphics

PERFORMANCE TUNINGNSIGHT

Page 55: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

56

FCAT VR

MEASURING THE QUALITY OF YOUR VR EXPERIENCE

Page 56: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

58

PERFORMANCE TUNINGFCAT

▪ Create charts and analyze

data for:

o Frametimes

o Dropped frames

o Runtime warp dropped frames

o Asynchronous Space Warp

(ASW)

o Synthesized frames

Page 57: Accelerating Your VR Games with VRWorks - NVIDIAon-demand.gputechconf.com/gtc/2018/presentation/s... · VR Tools –Nsight, FCAT VR. 3 NVIDIA In VR. NVIDIA CONFIDENTIAL. DO NOT DISTRIBUTE.

59

GRAPHICS HEADSET AUDIOTOUCH & PHYSICS

PROFESSIONAL VIDEO

Access Latest SDKs at developer.nvidia.com/vr

NVIDIA VRWorks