Method and device for drawing virtual reality scene and virtual reality device

A virtual reality and scene technology, applied in the field of virtual reality, can solve problems such as large delay and dizziness, and achieve the effects of reducing delay, improving user experience, and reducing invalid waiting time

Pending Publication Date: 2017-06-13
GOERTEK OPTICAL TECH CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The disadvantage of this mode is that the rendering thread must be in a waiting state after each drawing, waiting for the drawing thread to wake up. If the rendering task of the rendering thread is relatively light, the drawing will be completed in a short time, so the rende

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for drawing virtual reality scene and virtual reality device
  • Method and device for drawing virtual reality scene and virtual reality device
  • Method and device for drawing virtual reality scene and virtual reality device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] figure 2 It is a flowchart of a method for drawing a virtual reality scene provided by an embodiment of the present invention, such as figure 2 As shown, the drawing method of the virtual reality scene provided by this embodiment includes:

[0025] Step S210: Setting a vertical synchronization signal (VSYNC) with a specific frequency to control the drawing thread (timewarp) and the rendering thread (render).

[0026] Step S220: Estimating the time taken by the rendering thread to render one frame of virtual reality scene.

[0027] The time it takes to render a frame of virtual reality scene is related to the hardware configuration of the device. For example, drawing the same scene requires a shorter rendering time for a high-end graphics card. On the other hand, the time it takes to render a frame of virtual reality scene is also related to the rendered scene, and when the scene is more complex, the rendering time is longer.

[0028] In order to be able to estimate...

Embodiment 2

[0035] Figure 4 It is a functional block diagram of a virtual reality scene drawing device provided by an embodiment of the present invention, such as Figure 4 As shown, the device for rendering a virtual reality scene provided by this embodiment includes a vertical synchronization unit 410 , a rendering unit 420 and a rendering unit 430 .

[0036]The vertical synchronization unit 410 sends a vertical synchronization signal of a specific frequency to the rendering unit 420 and the rendering unit 430 . The rendering unit 420 estimates the time it takes for the rendering thread to complete the rendering of a frame of virtual reality scene, and sets the wake-up time at which the rendering thread is awakened to start the rendering of a frame of virtual reality scene, so that the rendering thread completes one frame just before the arrival of the vertical synchronization signal Rendering of the virtual reality scene; and controlling the rendering thread to enter the waiting stat...

Embodiment 3

[0041] Figure 5 is a functional block diagram of a virtual reality device provided by an embodiment of the present invention, such as Figure 5 As shown, the virtual reality device 500 provided in this embodiment includes the virtual reality scene rendering device 510 in the second embodiment above.

[0042] The rendering device 510 of the virtual reality scene controls the drawing thread and the rendering thread according to the vertical synchronization signal during the rendering of the virtual reality scene by the virtual reality device 500, and estimates the time it takes for the rendering thread to render a frame of the virtual reality scene, and based on the time Set the rendering time, wake up the rendering thread at this moment to start rendering a frame of virtual reality scene, so that the rendering thread just completes the rendering of a frame of virtual reality scene before the vertical synchronization signal arrives, and the rendering thread will render the rend...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for drawing a virtual reality scene and a virtual reality device. The method comprises the steps that a vertical synchronous signal of specific frequency is set to control a drawing thread and a rendering thread; time of finishing rendering a frame of the virtual reality scene by the rendering thread is estimated; wake-up time is set, the rendering thread is woken up to start rendering the frame of virtual reality scene at the wake-up time and completes rendering the frame of virtual reality scene just before the vertical synchronous signal arrives; the rendering thread enters a state of waiting for a wake when rendering is completed; when the vertical synchronous signal arrives, the drawing thread sends the frame of virtual reality scene rendered by the rendering thread to a screen, and drawing of the frame of virtual reality scene is finished. According to the scheme, the interval between the time of finishing rendering the frame of virtual reality scene by the rendering thread and time of sending the scene to the screen by the drawing thread is reduced, the invalid waiting time of the rendering thread is reduced, the delay is reduced, and the user experience is enhanced.

Description

technical field [0001] The invention relates to the technical field of virtual reality, in particular to a method and device for rendering a virtual reality scene and a virtual reality device. Background technique [0002] At present, the drawing process of mainstream virtual reality scenes adopts Timewarp asynchronous refresh method. The drawing mode is as follows: figure 1 As shown, there are generally two threads: a rendering thread (render) and a drawing thread (timewarp). The result of the rendering thread is obtained by the drawing thread and sent to the screen. The drawing thread controls the two threads according to the vertical synchronization signal (VSYNC). run. [0003] After the rendering thread thread completes a drawing, it does not directly perform the next drawing, but waits for the drawing thread to wake up. Every time the drawing thread receives the vertical synchronization signal, it draws and wakes up the rendering thread to render the next frame of im...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/44
Inventor 王明
Owner GOERTEK OPTICAL TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products